Changing the default solvers  FAQ

Frequently asked questions about GAMS

Moderator: aileen

Forum rules
Please ask questions in the other sub-forums
Posts: 273
Joined: 2 years ago

Changing the default solvers  FAQ

Post by abhosekar » 1 year ago

Changing the default solver can be done in various ways:

One of the convenient ways to set default solvers is through gamsconfig.yaml file: ... ommandLine

1. Windows: Run gamsinst.exe (present in the same file as gams.exe) from the command line and change the default solvers
2. Windows: Using the GAMSIDE: File → Options → Solvers. Click on the intersection of solver and model type that you want to be the default combination.
3. Unix: Run gamsinst again and change the default solver there.
4. Use a command line parameter, e.g. nlp=CONOPT
5. Add a line to your model (before the current solve statement) to switch your solver: option nlp=conopt. This will override all other settings and will tell GAMS to use GAMS/CONOPT to solve NLP models instead of the default NLP solver.

Note: Solvers, which call other solvers as a sub system (i.e DICOPT or SBB) may require an option file to change the default solver for the sub problem. Please refer to the solver documentation for more information.