Hessian for fmincon interior-point algorithm
If you are calling fmincon via YALMIP, YALMIP automatically supplies fmincon with function values and gradients. The Hessian is not computed and fmincon thus uses quasi-newton methods.
If you want to use fmincon and supply hessians, you will have to work completely outside of YALMIP.
>> ops = sdpsettings;>> ops.ipopt.hessian_approximation
ans =
limited-memory
ops=sdpsettings;
ops.fmincon
...
HessFcn: []
Hessian: []
HessMult: []
sdpvar x
optimize([],exp(1+x))
sdpvar x y z w
[model,internal] = export([x + y + w] == 1,x^2)
internal.used_variables
used_variables: [1 2 4]
getvariables(w)
ans =
4