Porblem with x.inf_pr passing through to myCallBack function when applying 'iterfun'

21 views
Skip to first unread message

2avoca...@gmail.com

unread,
Mar 28, 2019, 10:23:37 PM3/28/19
to OPTI Toolbox Forum
Dear Jonathan

I am using OPTI with IPOPT, and am applying 'iterfun' to optiset pointing to a function, 'myCallBack(iter,fval,x).

However, there seems to be a problem with the passing through of x from the optimizer to myCallBack. When I compare x.inf_pr in myCallBack with the value of inf_pr that is displayed on my screen (that's there when I set 'display' to 'iter'), the two values of inf_pr are not the same. (This is even though the corresponding values of inf_du, fval, mu etc. are consistent between what's in myCallBack and what's on my screen.)

Could you please advise? Many thanks.

Best,
Seline


Reply all
Reply to author
Forward
0 new messages