Hi,
Using Pyomo with ipopt. Would it be possible, every iteration, before any objective or constraint is solved, to call a user defined function? Is there any example if so? It's important that I can perform this before any work is done, each iteration, including the first iteration. I would like the function to be passed the current status of model.
I would equally be interested in a post-completed iteration hook, but the above is explicitly for a pre-iteration hook.
Thanks,
Andy