Search found 54 matches

by GabrielYin
1 year ago
Forum: Syntax
Topic: How to refresh Dynamic Set within a Loop
Replies: 2
Views: 582

Re: How to refresh Dynamic Set within a Loop

Thank you very much! it worked perfectly!

Cheers! :D
by GabrielYin
1 year ago
Forum: Syntax
Topic: How to refresh Dynamic Set within a Loop
Replies: 2
Views: 582

How to refresh Dynamic Set within a Loop

Hi all, I got really confused about how dynamic sets work in the loop. I tried to use dynamic sets to make my iterative model more efficient, but when I checked the output, it failed. The following is how I defined my dynamic sets: Sets g_ava(g) dynamic set l_ava(l) dynamic set; g_ava(g)$(G_avail0(g...
by GabrielYin
1 year ago
Forum: Syntax
Topic: Stochastic Programming with multiple stochastic parameters
Replies: 2
Views: 638

Re: Stochastic Programming with multiple stochastic parameters

Hi Lutz, I had them obey the same discrete distribution. And I have found a solution, that GAMS can only recognize variables in all notations instead of set. So, I should write the codes as: $onput stage 1 y(’n1’) y(’n2’) stage 2 u(’n1’) u(’n2’) v(’n1’) v(’n2’) d(’n1’) d(’n2’) w(’m1’) w(’m2’) w (’m3...
by GabrielYin
1 year ago
Forum: Syntax
Topic: Stochastic Programming with multiple stochastic parameters
Replies: 2
Views: 638

Stochastic Programming with multiple stochastic parameters

Hi dudes, I have one problem with the SP in GAMS. When I run a simple code with multiple stochastic terms, denoted by n, such as d(n), the output returns "System Failure", which I could not identify what happened. Here is my part of stochastic definition: File emp / '%emp.info%' /; put emp '* proble...