I'm using pyomo 6.6.4 and several solvers (Ipopt, Bonmin, Cbc,...) to solve different relatively complicated models (MINLP in general). Since my models have known infeasibility points I am solving them using several solvers or heuristics. In order to evaluate the quality of the results between different solvers or self defined solving heuristics I'm trying to build a solver comparison tool and noticed that when solving several time a model with a solver in a loop I'm always getting the same results whereas when using single runs, the results often differ.
I have tried to use different solver instances, model instances, to change the randomness generation seeds between iterations (for solvers which allow it) but nothing seems to do the trick. Any ideas?
I'm using pyomo 6.6.4 and several solvers (Ipopt, Bonmin, Cbc,...) to solve different relatively complicated models (MINLP in general). Since my models have known infeasibility points I am solving them using several solvers or heuristics. In order to evaluate the quality of the results between different solvers or self defined solving heuristics I'm trying to build a solver comparison tool and noticed that when solving several time a model with a solver in a loop I'm always getting the same results whereas when using single runs, the results often differ.
I have tried to use different solver instances, model instances, to change the randomness generation seeds between iterations (for solvers which allow it) but nothing seems to do the trick. Any ideas?
--
You received this message because you are subscribed to the Google Groups "Pyomo Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyomo-forum...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyomo-forum/d3c33314-63b4-4e09-8f69-9951007ab2c0n%40googlegroups.com.
The Pyomo interfaces to nonlinear solvers will use the current variable values as the initial point for the solver, and by default, the solution returned by a solver is loaded back into the Pyomo model. It sounds like you are solving the same model repeatedly using different solvers, so the final point returned by the previous solver is being used as the initial point by the subsequent solver.
John
From: pyomo...@googlegroups.com <pyomo...@googlegroups.com>
On Behalf Of Remo Andreoli
Sent: Wednesday, November 29, 2023 6:00 AM
To: pyomo...@googlegroups.com
Subject: [EXTERNAL] Re: Unwated consistency of results when solving a model multiple time within a loop
You don't often get email from andreo...@gmail.com. Learn why this is important |
To view this discussion on the web visit https://groups.google.com/d/msgid/pyomo-forum/CAJpxcBX2r9ki5VtLKD8N62d0dN%3DEsjxfyVY7bmhtxtPWJ1MH9A%40mail.gmail.com.