<< uncprb_getinitpt Unconstrained Optimization Problems Toolbox uncprb_getobjfcn >>

Unconstrained Optimization Problems Toolbox >> Unconstrained Optimization Problems Toolbox > uncprb_getname

uncprb_getname

Returns the name.

Calling Sequence

name = uncprb_getname(prbmat)
name = uncprb_getname(prbmat,longflag)

Parameters

prbmat:

a matrix of floating point integer, the problem number

longflag :

a boolean, if true returns the "long name" - human readable - of the test case. If false, returns the short name. (default = %f)

name:

a string, the name of the problem

Description

Selects the appropriate function based on nprob.

Examples

// Get the name for Rosenbrock's test case
nprob = 1
name = uncprb_getname(nprob)

// Get all names at once
nprobmax = uncprb_getproblems();
namemat = uncprb_getname(1:nprobmax);

// Search for number of the "almost" problem
nprobmax = uncprb_getproblems();
namemat = uncprb_getname(1:nprobmax);
nprob = find(namemat=="almost")

Authors

<< uncprb_getinitpt Unconstrained Optimization Problems Toolbox uncprb_getobjfcn >>