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 Language Change Required
AIMMS Select Gurobi via menu: Settings > Solver Confirguation
MPL Add Gurobi via menu: Options > Solver Menu
AMPL In model file, add: option solver gurobi_ampl;
GAMS In 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.

Modeling Language Action Required
AIMMS First, in menu select Settings > Project Options; second, in Option Tree select Specific Solvers > Gurobi then set the parameters via the GUI.
MPL First, in menu select Options > Gurobi Parameters then set the parameters via the GUI
AMPL In model file, add: option gurobi_options ‘presolve 2’;
GAMS Use command-line flags, options file or IDE


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.

Guidance for Your Journey

Gurobi: Always Free for Academics

We make it easy for students, faculty, and researchers to work with mathematical optimization.

Trusted Partners, at Your Service

When you face complex optimization challenges, you can trust our Gurobi Alliance partners for expert services.

We’ve Got Your Back

Our global team of helpful, PhD-level experts are here to support you—with responses in hours, not days.

New at Gurobi

Gurobi 10.0 Delivers Blazing-Fast Speed, Innovative Data Science Integration, and an Enterprise Development and Deployment Experience
Latest release enables data professionals to easily integrate machine learning models into optimization models to solve new types of problems.
 Learn More
Webinar: What’s New in Gurobi 10.0
In this webinar, attendees will get a first look at our upcoming product release, Gurobi 10.0. We will summarize the performance improvements and highlight some of the underlying algorithmic advances, such as the network simplex algorithm, enhancements in concurrent LP, and optimization based bound tightening.
 Learn More
new content
Cost Savings & Business Benefits for Gurobi Customers
2022 Total Economic Impact™ Study Reveals A 518% ROI with Gurobi
 Learn More