Evaluate objective function and gradient
[f,gred,ind] = ucost(X,ind)
real vector, variable of minimization.
indicator for function evaluation
objective function evaluated
reduced gradient of f evaluated at X. Only not fixed components are returned.
returned indicator
ubanh returns functon and gradient evaluation. ucost is designed to put aside evaluation on fixed variables. print: Set print to 0 if you don't want intermediate results Set print to n if you want results every n iterations. (default) no output genarted if print omitted. ind: See optim about costf for more details.
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