Evaluate objective function and possibly its gradient
[f,g] = cofg(x)
real vector, ther variable
value of the objective function
the gradient vector
f=cofg(x) returns the value of the objective function in f.
[f,g]=cofg(x) also returns the gradient vector in g.
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