grad Interface

interface
private subroutine grad(me, x, g, a)

Arguments

Type IntentOptional Attributes Name
class(slsqp_solver), intent(inout) :: me
real(kind=wp), intent(in), dimension(:) :: x

optimization variable vector

real(kind=wp), intent(out), dimension(:) :: g

objective function partials w.r.t x dimension(n)

real(kind=wp), intent(out), dimension(:,:) :: a

gradient matrix of constraints w.r.t. x dimension(m,n)

Description

for computing the gradients