<< uncprb_getvecfcn Unconstrained Optimization Problems Toolbox uncprb_getvecjacfd >>

Unconstrained Optimization Problems Toolbox >> Unconstrained Optimization Problems Toolbox > uncprb_getvecjac

uncprb_getvecjac

Returns the Jacobian.

Calling Sequence

J=uncprb_getvecjac(n,m,x,nprob)

Parameters

n:

a floating point integer, the number of variables, i.e. the size of x

m:

a floating point integer, the number of functions, i.e. the size of fvec

x:

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

nprob:

a floating point integer, the problem number

J:

a m x n matrix of doubles, the Jacobian matrix, dfi(x)/dxj, i=1,..,m , j=1, ..., n

Description

It is an interface function which calls the function uncprb_getfunc (which selects appropriate test function based on nprob) with option=2 in order to return J, the vector.

Examples

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

// Get Jacobian at x* for Rosenbrock's test case
[fopt,xopt] = uncprb_getopt(nprob,n,m)
Jopt = uncprb_getvecjac(n,m,xopt,nprob)

Authors

<< uncprb_getvecfcn Unconstrained Optimization Problems Toolbox uncprb_getvecjacfd >>