switching to gurobi

Switching within a Modeling Language

With solver-independent systems like AIMMS, AMPL, GAMS, and MPL, migrating is easy. Just install a license, set the solver to Gurobi, and set your parameters.

switching to gurobi

Switching within a Modeling Language

With solver-independent systems like AIMMS, AMPL, GAMS, and MPL, migrating is easy. Just install a license, set the solver to Gurobi, and set your parameters.

switching to gurobi

Switching within a Modeling Language

With solver-independent systems like AIMMS, AMPL, GAMS, and MPL, migrating is easy. Just install a license, set the solver to Gurobi, and set your parameters.

How you migrate from a modeling system depends on which modeling system you’re using.

How you migrate from a modeling system depends on which modeling system you’re using. With the solver-independent systems — AIMMS, AMPL, GAMS and MPL — migrating is extremely easy: you simply need to install a license, set the solver to Gurobi, and set your parameters, if any.

With the single-solver systems — OPL and Mosel — you will need to migrate your existing model code. Since these are both algebraic modeling languages, this migration is straightforward. You can learn more on our Switching from OPL webpage.

Obtaining a Gurobi License

If you are using AMPL, we can sell you a license or provide an evaluation copy directly. Please contact us to request the license. If you are using AIMMS, GAMS or MPL, you’ll want to contact them directly and ask for a Gurobi License.

Depending on the modeling language, you will use either an IDE (AIMMS and MPL) or a change a line in the model file (AMPL and GAMS).

How you migrate from a modeling system depends on which modeling system you’re using.

How you migrate from a modeling system depends on which modeling system you’re using. With the solver-independent systems — AIMMS, AMPL, GAMS and MPL — migrating is extremely easy: you simply need to install a license, set the solver to Gurobi, and set your parameters, if any.

With the single-solver systems — OPL and Mosel — you will need to migrate your existing model code. Since these are both algebraic modeling languages, this migration is straightforward. You can learn more on our Switching from OPL webpage.

Obtaining a Gurobi License

If you are using AMPL, we can sell you a license or provide an evaluation copy directly. Please contact us to request the license. If you are using AIMMS, GAMS or MPL, you’ll want to contact them directly and ask for a Gurobi License.

Depending on the modeling language, you will use either an IDE (AIMMS and MPL) or a change a line in the model file (AMPL and GAMS).

How you migrate from a modeling system depends on which modeling system you’re using.

How you migrate from a modeling system depends on which modeling system you’re using. With the solver-independent systems — AIMMS, AMPL, GAMS and MPL — migrating is extremely easy: you simply need to install a license, set the solver to Gurobi, and set your parameters, if any.

With the single-solver systems — OPL and Mosel — you will need to migrate your existing model code. Since these are both algebraic modeling languages, this migration is straightforward. You can learn more on our Switching from OPL webpage.

Obtaining a Gurobi License

If you are using AMPL, we can sell you a license or provide an evaluation copy directly. Please contact us to request the license. If you are using AIMMS, GAMS or MPL, you’ll want to contact them directly and ask for a Gurobi License.

Depending on the modeling language, you will use either an IDE (AIMMS and MPL) or a change a line in the model file (AMPL and GAMS).

Modeling LanguageChange Required
AIMMSSelect Gurobi via menu: Settings > Solver Confirguation
MPLAdd Gurobi via menu: Options > Solver Menu
AMPLIn model file, add: option solver gurobi_ampl;
GAMSIn program file, add either: Option LP = Gurobi; or Option MIP = Gurobi;

If you do run into any issues or have any questions, we are happy to assist our users via our Support Portal.

Converting parameter settings

The final step is to set the Gurobi parameters. Below is a table with information on where in each modeling language you can go to set the parameters. In addition, our switching from CPLEX™ and switching from XPRESS™ pages contain a detailed list of common parameters used by each of those engines, along with their Gurobi equivalents.

If you do run into any issues or have any questions, we are happy to assist our users via our Support Portal.

Converting parameter settings

The final step is to set the Gurobi parameters. Below is a table with information on where in each modeling language you can go to set the parameters. In addition, our switching from CPLEX™ and switching from XPRESS™ pages contain a detailed list of common parameters used by each of those engines, along with their Gurobi equivalents.

If you do run into any issues or have any questions, we are happy to assist our users via our Support Portal.

Converting parameter settings

The final step is to set the Gurobi parameters. Below is a table with information on where in each modeling language you can go to set the parameters. In addition, our switching from CPLEX™ and switching from XPRESS™ pages contain a detailed list of common parameters used by each of those engines, along with their Gurobi equivalents.

Modeling LanguageAction Required
AIMMSFirst, in menu select Settings > Project Options; second, in Option Tree select Specific Solvers > Gurobi then set the parameters via the GUI.
MPLFirst, in menu select Options > Gurobi Parameters then set the parameters via the GUI
AMPLIn model file, add: option gurobi_options ‘presolve 2’;
GAMSUse command-line flags, options file or IDE

Conclusion

Switching to Gurobi from within a modeling language can be done relatively quickly and with no changes required to your model. If you do run into any issues or have any questions, we are happy to assist our users via our Support Portal.

Conclusion

Switching to Gurobi from within a modeling language can be done relatively quickly and with no changes required to your model. If you do run into any issues or have any questions, we are happy to assist our users via our Support Portal.

Conclusion

Switching to Gurobi from within a modeling language can be done relatively quickly and with no changes required to your model. If you do run into any issues or have any questions, we are happy to assist our users via our Support Portal.

Try Gurobi for Free

Ready to see Gurobi in action? Request an evaluation license and discover what optimization can do for your toughest problems.

Try Gurobi for Free

Ready to see Gurobi in action? Request an evaluation license and discover what optimization can do for your toughest problems.

Try Gurobi for Free

Ready to see Gurobi in action? Request an evaluation license and discover what optimization can do for your toughest problems.