Show an expression on each iteration of the optimization
Show older comments
Hello,
I'm using "lsqnonlin" to optimize a function and would like to show a expression, important for my problem, in each iteration. This expression depends on the optimization variables, therefore will change with each iteration. I understand that I can do this with OutputFcn, but I failed to understand how. I think it should not be complicated, please help!
The indicator is: (z(1)*z(2)+6)/z(4)+z(5)*z(6)
Thanks in advance!
Accepted Answer
More Answers (0)
Categories
Find more on Choose a Solver in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!