Hi!
I need to use solver BARON to solve a MINLP model, I wanted to work with GAMS Studio too.
I have full license for BARON in In My GAMS, But in GAMS Studio I had This error :
**** Terminated due to a licensing error
GAMS Development Corporation, USA G871201/0000CA-ANY
Free Demo, +1 202-342-0180, support@gams.com, www.gams.com
As far as I am aware, this is not yet possible.
You could write two small batch-files: the first copies one license to a licensenonuse.txt and copies the one you need to gamslice.txt
e.g. you have gamslice.txt and gamslicealt.txt as your licenses.
The first batch file copies gamslice.txt to gamslice1.txt and copies gamslicealt.txt to gamslice.txt
The second one reverses the process: copies gamslice1.txt to gamslice.txt and deletes gamslice1.txt.
I hope this helps
Renger
The “Use alternative license file” functionality that you find in GAMS IDE is not available in Studio (or at least not yet). But you don’t really need a license for Studio (or for GAMS IDE) anyway. This option exists only as a convenient way to point the GAMS system being used to an alternative license file. It’s not about Studio or the IDE.
In your case, you can:
copy the GAMS license you want to use into the GAMS system directory as gamslice.txt. That’s the usual way to run things. Or
use the license argument to point GAMS to the license file. For example, in studio I can run with these args to use an alternative license: