5
$\begingroup$

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?

$\endgroup$

1 Answer 1

4
$\begingroup$

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.

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

Your Answer

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

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