Search found 8 matches

by Tatjana
8 months ago
Forum: Modeling
Topic: arrangement of LHS and RHS in equality equations (MCP)
Replies: 2
Views: 5328

Re: arrangement of LHS and RHS in equality equations (MCP)

Hi Steve, thank you so much for your answer. It really helped with the intuition behind it. For everybody who stumbles across this matter in the future: I just found a chapter in the PATH solver that specifically names this problem: https://www.gams.com/latest/docs/S_PATH.html#PATH_PITFALLS The sent...
by Tatjana
8 months ago
Forum: Syntax
Topic: Dimension Different Error (Electricity Pricing Model)
Replies: 1
Views: 4892

Re: Dimension Different Error (Electricity Pricing Model)

Hi omarrossan, First of all, the line **** $145 $145,278 $148,133$148,133,133,654,300 helps you to find the precise spot within the equation where the error plopped up. Have a look at your listing file and you'll see that it is right under the variable or parameter that caused the issue. Here you ca...
by Tatjana
8 months ago
Forum: Modeling
Topic: arrangement of LHS and RHS in equality equations (MCP)
Replies: 2
Views: 5328

arrangement of LHS and RHS in equality equations (MCP)

Dear all, I'm working with MCP equations, so the arrangements of equations are important. To match an equation with a variable that has a lower bound , I need to set it up with a ≥ sign. So, like this: eq_inequation var1**2 =g= 9 not as eq_inequation .. 9 =l= var1**2 This is easy enough for me. Howe...
by Tatjana
8 months ago
Forum: Syntax
Topic: writing constraints
Replies: 1
Views: 4960

Re: writing constraints

Hi mlftx. Please specify your question by giving some example of what you want to do. The image that you attached is - at least for me - not visible. Just guessing, you might benefit from reading about Conditional Expressions, Assignments and Equations: https://www.gams.com/latest/docs/UG_CondExpr.h...
by Tatjana
1 year ago
Forum: API
Topic: Disaggregating a Set with Python
Replies: 2
Views: 4216

Re: Disaggregating a Set with Python

Hi Bussiek, thank you for taking the time o look into my problem. Your code didn't give the sets that I desired, but I think you have a good point that I need to execute everything at compile time. So I've been sitting over this for quite a while since your answer - I couldn't make the Python code w...
by Tatjana
1 year ago
Forum: API
Topic: Disaggregating a Set with Python
Replies: 2
Views: 4216

Disaggregating a Set with Python

Hi everyone. I'm trying to create some sets with Python, but I lack any knowledge about Python and am running into some problems (right now, Python says mapping_com_rest would not be defined - but I'm sure there are more errors. I also noticed that some code of mine already worked with "$onembe...
by Tatjana
3 years ago
Forum: Modeling
Topic: Double bound variable in an MCP
Replies: 2
Views: 2111

Re: Double bound variable in an MCP

Hello Steve, Thank you for your reply. I suppose you meant to set the initial goal to min f(x) := (x-1)**2. I ran it with your suggested domains and some additional ones, such as [-2;0] or [2;5], to see which solution the model chooses if neither x.lo, nor x.up, nor anything in between is able to so...
by Tatjana
3 years ago
Forum: Modeling
Topic: Double bound variable in an MCP
Replies: 2
Views: 2111

Double bound variable in an MCP

Dear all, in the general explanation of MCPs, it is stated that MCP models can solve problems where F(z) ⟂ z.lo ≤ z ≤ z.up Meaning that one of three conditions can hold F(z) > 0 while z.lo = z F(z) = 0 while z.lo ≤ z ≤ z.up F(z) < 0 while z = z.up https://www.gams.com/latest/docs/UG_ModelSolve.html#...