How Can I set license in GAMS Studio?

Solver related questions
Post Reply
Lucas
User
User
Posts: 20
Joined: 5 months ago

How Can I set license in GAMS Studio?

Post by Lucas » 3 weeks ago

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 :

Code: Select all

 
 **** 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!

User avatar
Renger
Posts: 398
Joined: 3 years ago

Re: How Can I set license in GAMS Studio?

Post by Renger » 3 weeks ago

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
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist

Lucas
User
User
Posts: 20
Joined: 5 months ago

Re: How Can I set license in GAMS Studio?

Post by Lucas » 3 weeks ago

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

User avatar
Renger
Posts: 398
Joined: 3 years ago

Re: How Can I set license in GAMS Studio?

Post by Renger » 2 weeks ago

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
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist

User avatar
dirkse
Moderator
Moderator
Posts: 84
Joined: 3 years ago
Location: Fairfax, VA

Re: How Can I set license in GAMS Studio?

Post by dirkse » 2 weeks ago

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

Post Reply