ampl_evalg AMPL Toolbox ampl_free

AMPL Toolbox >> AMPL Toolbox > ampl_evalw

ampl_evalw

evaluate the dense Hessian of the objective function and of the constraints of a given AMPL problem

Calling Sequence

W = ampl_evalw(asl, v)

Parameters

v

the dual variables

asl

a structure which handles the pointer to the problem

W

a matrix handling the Hessian (dimension: n_var x n_var)

Description

Evaluate the Hessian of the objective function and of the constraintsof a given AMPL problem. The Hessian is evaluated at the last point given to ampl_evalf.

Examples

[asl, x0, bl, bu, v, cl, cu] = ampl_init('demos/data/ASL/ch03.nl');

W = ampl_evalw(asl, v);

ampl_free(asl); // free the memory

See Also

Authors

ampl_evalg AMPL Toolbox ampl_free