Search found 6 matches
- 7 months ago
- Forum: Syntax
- Topic: Change set values
- Replies: 2
- Views: 6002
Re: Change set values
Ok, this is useful. Thank you for your help.
- 8 months ago
- Forum: Syntax
- Topic: Change set values
- Replies: 2
- Views: 6002
Change set values
Hello, I have defined a set as follows: set li /li4/; Afterwards, all the equations and parameters are defined over the set li. There is a large number of equations and parameters. Initially, I need to run the model using li4 only. Based on the output results, I need to rerun the model while redefin...
- 1 year ago
- Forum: Modeling
- Topic: Modeling DRO in Gams
- Replies: 0
- Views: 2769
Modeling DRO in Gams
Does anyone have any simple example of distributionally robust optimization (DRO) in GAMS software? After searching the web, it seems that no one has implemented a distributionally robust optimization model in any subject in GAMS before!!!
- 3 years ago
- Forum: Syntax
- Topic: Recording the Relative gap
- Replies: 0
- Views: 2037
Recording the Relative gap
hello I need to record the relative gap in a parameter in order to write it in an excel file. In the lst file, I get the relative gap as 0.0018, for example. Since I run large number of models, I need to record the relative gap for each model in an excel file automatically at the end of running each...
- 3 years ago
- Forum: Modeling
- Topic: Variable sequence as a set
- Replies: 2
- Views: 2137
Re: Variable sequence as a set
Dear Renger
Thank you for help. This solution doesn't work with gams 24.5.3. It gives me error 140: unknown symbol and points to val.k; however, when I have tried
k.val instead of val.k, it worked. Thank you.
Regards
Wael
Thank you for help. This solution doesn't work with gams 24.5.3. It gives me error 140: unknown symbol and points to val.k; however, when I have tried
k.val instead of val.k, it worked. Thank you.
Regards
Wael
- 3 years ago
- Forum: Modeling
- Topic: Variable sequence as a set
- Replies: 2
- Views: 2137
Variable sequence as a set
Hi I need to implement the following Once I load a scalar value (say value for x) from an excel file, I need to use this value to create a sequence set as follows Set i sequence given by the user /1*x/ This gives me an error, so how can I create a variable set, where the user will provide the length...