Trying to use an opensource optimization tool in python (having used only gurobi for years) I see that the whole code (representing the optimization problem in pythonic language) must be written differently in order to use such tools (pyomo etc.). Is there a straightforward way for me to run my scripts (in the form that they are written-aligning with gurobi grammar) but using a different solver/tool/package rather than gurobi?


1 Answer 1


I think pySCIPOpt might be a good choice, provided you are willing to make minor changes to the code. The modelling interface is very similar to Gurobi and the underlying SCIP solver also supports handy modelling features like indicator constraints or logical AND/OR/XOR constraints. Alternatively, you could save all your models as MPS files and solve them with the solver of your choice since nearly all common modelling interfaces support the MPS file format.

  • $\begingroup$ thank you very much! $\endgroup$ Jan 25, 2022 at 19:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.