<< cofg CUTEr conmin_obj >>

CUTEr >> CUTEr > conmin_constr

conmin_constr

conmin solver external function that computes the constraints and the jacobian of constraints for CUTEr.

Calling Sequence

[c,cjac,ic] = conmin_constr(x,ct)

Parameters

x

A vector, the current value of the unknown

ct

A scalar, the current tolerance for constraint violation

split

A array with 5 integer elements:

split(1):split(2)-1 give the index of the linear equalities.

split(2):split(3)-1 give the index of the linear inequalities.

split(3):split(4)-1 give the index of the nonlinear equalities.

split(4):split(5)-1 give the index of the nonlinear inequalities.

c

A vector, the current value of the constraint functions

cjac

A matrix, the current value of the jacobian of the active constraints

ic

A vector, the index of the active constraints

Description

This function computes the constraints and the associated jacobian at the point x for the current CUTEr problem according to the conmin requirements.

It includes a cpu time limitation to cancel the resolution if the cpu time exceeds 3600s.

Example

probpath=TMPDIR+'/DEMYMALO'
sifdecode(get_sif_path()+'/sif/DEMYMALO.SIF',probpath)
buildprob(probpath)

props=get_problem_sizes(probpath)

[XSTART,bl,bu,v,cl,cu,equatn,linear] = csetup(probpath+'/OUTSDIF.d', [%t %t %f]);
split=cumsum([1,props.nlineq,props.nlinin,props.nnlineq,props.nnlinin])
[c,cjac,ic] = conmin_constr(XSTART,0.01,split)

See Also

Authors

Used Functions

ccfg


Report an issue
<< cofg CUTEr conmin_obj >>