Evaluate constraint functions and possibly their gradients, sparse case,
[c,cjac,indvar,indfun] = ccfsg(x)
real vector
vector of constraint values
non zero elements of the sparse constraint Jacobian matrix
variable indices of non zero elements of the sparse constraint Jacobian matrix
general constraint function indices of non zero elements of the sparse constraint Jacobian matrix
c=ccfsg(x) returns the vector of constraint values in c.
[c,cjac,indvar,indfun]=ccfsg(x)
returns
the sparse constraint Jacobian matrix in
cjac
,indvar
and
indfun
. The cjac(i)
gives
the value of the derivative c
with respect to
variable indvar(i)
of constraint function
c
indfun(i)
(i.e.,
indfun(i) = j > 0
indicates the j-th
c
general constraint function). The jacobian
sparse matrix can be created by
Cjac=sparse([indvar,indfun],cjac,[n,m])
, where
n
is the number of variables and
m
the number of general constraints.
Serge Steer, INRIA
Based on CUTEr authored by
Nicholas I.M. Gould - n.gould@rl.ac.uk - RAL
Dominique Orban - orban@ece.northwestern.edu - Northwestern
Philippe L. Toint - Philippe.Toint@fundp.ac.be - FUNDP
see http://hsl.rl.ac.uk/cuter-www