% funcs.iterfunc (optional)
%
% An additional callback routine that is called once per algorithm
% iteration. It takes three inputs: the first is the current iteration
% of the algorithm, the second is the current value of the objective,
% and the third is a structure containing fields x, inf_pr, inf_du, mu,
% d_norm, regularization_size, alpha_du, alpha_pr, and ls_trials. This
% function should always return true unless you want IPOPT to terminate
% prematurely for whatever reason. If you would like to use the third
% input to iterfunc along with auxdata functionality, you will need to
% modify the appropriate section of ipopt_auxdata.m.
however auxdata struct does not contain the value of the current solution x.
Matlab output is
The description of funcs.iterfunc reports:
% funcs.iterfunc (optional) % % An additional callback routine that is called once per algorithm % iteration. It takes three inputs: the first is the current iteration % of the algorithm, the second is the current value of the objective, % and the third is a structure containing fields x, inf_pr, inf_du, mu, % d_norm, regularization_size, alpha_du, alpha_pr, and ls_trials. This % function should always return true unless you want IPOPT to terminate % prematurely for whatever reason. If you would like to use the third % input to iterfunc along with auxdata functionality, you will need to % modify the appropriate section of ipopt_auxdata.m.
however auxdata struct does not contain the value of the current solution x. Matlab output is
auxdata =
struct with fields: