<< ccfg CUTEr ccifg >>

CUTEr >> CUTEr > ccfsg

ccfsg

Evaluate constraint functions and possibly their gradients, sparse case,

Calling Sequence

[c,cjac,indvar,indfun] = ccfsg(x)

Parameters

x

real vector

c

vector of constraint values

cjac

non zero elements of the sparse constraint Jacobian matrix

indvar

variable indices of non zero elements of the sparse constraint Jacobian matrix

indfun

general constraint function indices of non zero elements of the sparse constraint Jacobian matrix

Description

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.

Authors

Serge Steer, INRIA

Bibliography

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


Report an issue
<< ccfg CUTEr ccifg >>