Search found 14 matches

by pitters
10 months ago
Forum: Syntax
Topic: gsp files
Replies: 1
Views: 2271

gsp files

After the 42 update, Im full of gsp files.

What do they do?, I read they save the project or something.
Is there a way to disable the creation of gsp files?
by pitters
1 year ago
Forum: Syntax
Topic: Running NEOS from Python API
Replies: 7
Views: 7575

Re: Running NEOS from Python API

Hi @Clemens, This change solved the problem. Thanks a lot! I assume that the error is the same when running Kestrel from command line. So it seems that setting the SSL_CERT_FILE in [GAMS dir]\gmske_nt.cmd is not enough. If you allow me an experiment, could you change the following line of code in [G...
by pitters
2 years ago
Forum: Syntax
Topic: Running NEOS from Python API
Replies: 7
Views: 7575

Re: Running NEOS from Python API

Hi, It seems that the Kestrel solver uses an invalid certificate. Actually it should be aware of cacert.pem located in [GAMS dir]\GMSPython\Lib\site-packages\certifi. Does the Kestrel solver work from command line, if you do not have a Python script in between? There is also a Python example that d...
by pitters
2 years ago
Forum: Syntax
Topic: Running NEOS from Python API
Replies: 7
Views: 7575

Running NEOS from Python API

Hi! I'm able to run a GAMS/NEOS process through the NEOS button "RUN NEOS", Screenshot_1.png I would like to run this process through python api, but for obious reasons I cannot actually press the "RUN NEOS" button from python. I'm running a very basic code in python, something l...
by pitters
2 years ago
Forum: Syntax
Topic: upper/lower bound vs restriction
Replies: 1
Views: 2628

upper/lower bound vs restriction

Hi, quick question, do setting lower / upper bound work different than a restriction?, is one more efficient than the other?

upper bound by setting it
a.up(t) = 50

upper bound by restriction
a(t) =L= 50


thanks
by pitters
2 years ago
Forum: Syntax
Topic: $LOADDC domain violation as output
Replies: 3
Views: 3568

Re: $LOADDC domain violation as output

Thanks Michael!

I implemented this and it help a lot!

I have two questions tho,

Whats the purpose of 'lo=2' in:
$ call.checkErrorLevel gams printDV.gms lo=2

Why did u alias the universal set?
by pitters
2 years ago
Forum: Syntax
Topic: $LOADDC domain violation as output
Replies: 3
Views: 3568

$LOADDC domain violation as output

Hi! Do you know of a way to output the domains violations in a txt or csv file? Being more specific, I have two sets, set_db and set_nondb set_db should have all elements set_nondb should have only elements from db but in ocacions there will be new elements and we need to capture them. Sets: set_db ...
by pitters
2 years ago
Forum: Syntax
Topic: parameter with dynamic dependencies
Replies: 3
Views: 3264

Re: parameter with dynamic dependencies

Thanks GFA, good answer! - Which comes down to the same as: ' tariff("c1",materials) = 10; ' which will also result in the same tariff (10) for all materials for country c1. If you need to import the tables from excel: $CALL GDXXRW.EXE i=test.xlsx o=tariff par=tariff rng=tariff!a2 Rdim=2 D...
by pitters
2 years ago
Forum: Syntax
Topic: parameter with dynamic dependencies
Replies: 3
Views: 3264

parameter with dynamic dependencies

Hi I have a question related to the dependencies of a set As a 'toy problem', lets say I have the sets SETS: country /c1..c5/ material/m1..m3/ Parameter: tariff(country, material) The parameter table looks like this Screenshot_1.png The tariff principally depends of the country, but there is a few e...
by pitters
2 years ago
Forum: Syntax
Topic: Merging GDX files
Replies: 3
Views: 2846

Re: Merging GDX files

Thanks abhosekar, I edited the post and added the gdx files for other users.