Pyomo/CBC: Get last iteration of CBC optimizer before infeasible

Viewed 22

I'm migrating an optimization script (using Pyomo and CBC) from a local Windows 10 machine to a Linux-based platform (Dataiku). For some reason either pyomo or cbc behaves differently even though there have been no changes to the optimization part of the script. On local Windows, even though the optimization was infeasible, I got a last-iteration solution before it turned out to be infeasible - for our purposes this was good enough, since the infeasibility appears in unimportant places and as there are about 100k variables, it did not make sense to look for them. On the linux-based platform, when the solution is infeasible, I get the output of initial values, basically zeros on all non-fixed positions. I assumed that this would be fixed by turning off the presolve, but it still returns initial values. Does anyone know, how to get the last iteration of the optimizer? Thanks

0 Answers
Related