evaluate the objective function and the constraints value of a given AMPL problem
[f, c] = ampl_evalf(asl, x)
the point where we evaluate the objective function and the constraints
a structure which handles the pointer to the problem
the value of the objective function
a vector which contains the value of the constraints
Evaluate the objective function and the constraints value of a given AMPL problem.
[asl, x0, bl, bu, v, cl, cu] = ampl_init('demos/data/ASL/ch03.nl'); [f, c] = ampl_evalf(asl, x0); ampl_free(asl); // free the memory