Search found 215 matches
- 1 year ago
- Forum: Modeling
- Topic: Equality constraint not enforced
- Replies: 4
- Views: 5594
Re: Equality constraint not enforced
Zack, Yes, the log shows that your models are solved properly. I suggest you contact GAMS directly via support@gams.com (or with a phone call) to pursue this matter. It's possible we may need a reproducible example that we can run here in order to resolve this issue. If you can provide that easily, ...
- 1 year ago
- Forum: Modeling
- Topic: Equality constraint not enforced
- Replies: 4
- Views: 5594
Re: Equality constraint not enforced
Zack, You haven't sent the .log or .lst files from your run, so I can only guess what happened. The output you send is consistent with an infeasible model. If your model is infeasible, the solver will stop short of computing a solution, and this will be evident in the .log and .lst files. You might ...
- 1 year ago
- Forum: Syntax
- Topic: Optimize reservoir hedging rules
- Replies: 9
- Views: 5486
Re: Optimize reservoir hedging rules
Silence, When I run your model with GAMS 39.2, I get this message in the log: CPLEX Error 5002: 'B_YNHpad3' is not convex. Looking at your GAMS source, I see equation B_YNHpad3: B_YNHpad3.. beg_S('Res_YNH')=l= Rule('1','YNH_pad')*Yp1('1')+Vupper('1','Res_YNH')*Yp2('1'); The multiplication of variabl...
- 1 year ago
- Forum: Syntax
- Topic: Syntax for Sorting the Sets
- Replies: 1
- Views: 2141
Re: Syntax for Sorting the Sets
Arvind, You cannot store the same set in two different orders in GAMS. Read more about that here: https://www.gams.com/39/docs/UG_OrderedSets.html#UG_OrderedSets_OrderedAndUnorderedSets But you can access the set elements out of order. Here's an old thread on this topic: https://forum.gamsworld.org/...
- 1 year ago
- Forum: Syntax
- Topic: Error on write of file = 'Z:\ABC.lst': Invalid argument
- Replies: 2
- Views: 2033
Re: Error on write of file = 'Z:\ABC.lst': Invalid argument
Can you say a little more about your Z: drive? If that's some sort of network share (OneDrive, Google Drive, etc.) that may explain the problem. Network drives look and feel like normal drives from a distance, but if they are used intensively, their weak spots are exposed. I suggest you try running ...
- 2 years ago
- Forum: Modeling
- Topic: Stackelberg non linear problem
- Replies: 2
- Views: 2450
Re: Stackelberg non linear problem
Oskar, It's important to consider exactly how you plan to represent each agent when choosing a model type. Terms like "Stackelberg" don't do this fully. For example, some people often describe the case of two players - each characterized or represented by an optimization problem - as a S...
- 2 years ago
- Forum: Modeling
- Topic: 'Misbehaving' follower in bi-level optimization model
- Replies: 6
- Views: 8071
Re: 'Misbehaving' follower in bi-level optimization model
Hi, I believe forum users would be more able and willing to help you if you followed the forum rules: https://forum.gamsworld.org/app.php/rules A few observations on your model spring to mind: 1. If you have issues with infeasibility, first try to relax all the integrality constraints and see if tha...
- 2 years ago
- Forum: Syntax
- Topic: Parameter Syntax with "#" sign and 3 Dimensions
- Replies: 3
- Views: 2077
Re: Parameter Syntax with "#" sign and 3 Dimensions
Hi, The syntax #<setname> just puts the elements of the specified set into the input at that point. Since you want a 3-D set, you need a 3-tuple to initialize set elements. You can do it like this: Sets scen "scenarios" / s1*s3 / wo "worlds" / w1*w4 /; Parameter s2(scen,*) "...
Re: MPSGE
Zhanna, This is a strange error, and it's more difficult for you to engage with because it's happening inside the mpsgeset sysinclude file in the GAMS sysdir. I am attaching a hacked-up version of mpsgeset that will help figure this out. Please do: 1. Copy the attached next to the original mpsgeset ...
- 2 years ago
- Forum: Solvers
- Topic: Changing tolerence
- Replies: 6
- Views: 3953
Re: Changing tolerence
Hello, Have you verified that the solver completed successfully? If the solver terminates prior to finding a solution (say, because of a time limit or iteration limit, or because it declares the model infeasible) then the level values returned by the solver for binary variables might not be close to...