conmin solver external function that computes the constraints and the jacobian of constraints for CUTEr.
[c,cjac,ic] = conmin_constr(x,ct)
A vector, the current value of the unknown
A scalar, the current tolerance for constraint violation
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.
A vector, the current value of the constraint functions
A matrix, the current value of the jacobian of the active constraints
A vector, the index of the active constraints
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.
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) | ![]() | ![]() |