<< cnames CUTEr conmin_constr >>

CUTEr >> CUTEr > cofg

cofg

Evaluate objective function and possibly its gradient

Calling Sequence

[f,g] = cofg(x)

Parameters

x

real vector, ther variable

f

value of the objective function

g

the gradient vector

Description

f=cofg(x) returns the value of the objective function in f.

[f,g]=cofg(x) also returns the gradient vector in g.

Examples

sifdecode(get_sif_path()+'sif/BT1.SIF',TMPDIR+'/BT1')
buildprob(TMPDIR+'/BT1')
[x,bl,bu,v,cl,cu,equatn,linear] = csetup(TMPDIR+'/BT1/OUTSDIF.d');
[F,G]=cofg(x)

Authors

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
<< cnames CUTEr conmin_constr >>