<< uncprb_getproblems Unconstrained Optimization Problems Toolbox uncprb_getvecjac >>

Unconstrained Optimization Problems Toolbox >> Unconstrained Optimization Problems Toolbox > uncprb_getvecfcn

uncprb_getvecfcn

Returns the function vector and the Jacobian.

Calling Sequence

fvec=uncprb_getvecfcn(n,m,x,nprob)

Parameters

n:

the number of variables, i.e. the size of x

m:

the number of functions, i.e. the size of fvec

x:

a n x 1 matrix of doubles, the point where to compute f

nprob:

the problem number

fvec:

a m x 1 matrix of doubles, the vector (f1(x), f2(x), ... fm(x))^T

Description

It is an interface function which calls the function func (which selects appropriate test function based on nprob) with option=1 inorder to return fvec , the vector.

Examples

// Get fvec and J at x0 for Rosenbrock's test case
nprob = 1
[n,m,x0]=uncprb_getinitf(nprob)
fvec=uncprb_getvecfcn(n,m,x0,nprob)

Authors

<< uncprb_getproblems Unconstrained Optimization Problems Toolbox uncprb_getvecjac >>