How Can I set license in GAMS Studio?

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

Why?
How Can I set license in GAMS Studio?

Thanks!

Hi Lucas

I didn’t find an option in GAMS Studio to set the default solver, but you can always set the solver in your code (before the solve statement):

option solver = Baron;

Hope this helps

Renger

Hi Renger!

Thanks for your answer, but I want to copy my license to GAMS studio.
I didn’t see anything to set the license in Studio.

In GAMS I used this way:

file> option> Lisnces> Use alternative license file , and Copy the license file.

Do we have something like this at GAMS studio?

Thanks soooooo much!
Lucas

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

Lucas,

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:

  1. 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

  2. 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:

license=C:\users\sdirk\Documents\dc13532.txt

HTH,

-Steve

Many Thanks!

In the meantime, the configuration editor has been added to GAMS Studio and allows users to conveniently point to a license file.
image.png