Search found 4 matches

by akingCCC
6 days ago
Forum: API
Topic: Python API picking up wrong GAMS version
Replies: 3
Views: 763

Re: Python API picking up wrong GAMS version

Hi, Something seems to put in the GAMS 38 path into your configuration. Have you checked if the PYTHONPATH environment variable is set? Run from the Anaconda command prompt: echo %PYTHONPATH% Best, Clemens Hi Clemens, Yes, thanks, I think that's it! When I put that into the command prompt, I get C:...
by akingCCC
1 week ago
Forum: API
Topic: Python API picking up wrong GAMS version
Replies: 3
Views: 763

Python API picking up wrong GAMS version

I'm trying to install the GAMS Python API using Anaconda, but it is picking up an old version of GAMS (38) that I have installed on my machine. I have GAMS 38-46 currently installed, and am trying to use the api with Gams 46.4.0, the latest version installed on my machine. I started by creating a ne...
by akingCCC
1 year ago
Forum: Syntax
Topic: Multidimensional set in MPSGE
Replies: 1
Views: 1595

Re: Multidimensional set in MPSGE

I've figured it out: $prod:land_nt(agr_nt,r)$active(agr_nt,r,"0") o:pfs(f,agr_nt,r)$(sameas(f,"lnd")) q:vffm(f,agr_nt,r) i:pfs(f,agr,r)$(agr_map(agr,agr_nt) and sameas(f,"lnd")) q:vffm(f,agr_nt,r) The trick was to replace the general set g with the set agr_nt, instead o...
by akingCCC
1 year ago
Forum: Syntax
Topic: Multidimensional set in MPSGE
Replies: 1
Views: 1595

Multidimensional set in MPSGE

I've got a lot of situations where I have rto_nt("rmk1",r) = rto("rmk",r); rto_nt("b_s1",r) = rto("b_s",r); ... so I need a 1-to-1 mapping between rmk and rmk1, b_s and b_s1, etc (a lot like "Indice from Indice" posted by Manu123 a couple of months a...