Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 7381

For questions related to GAMS (General Algebraic Modeling System), a high-level modeling system for mathematical optimization.

1 vote

GAMS Sum over a subset

In GAMS, you are not allowed to perform a sum in the same set as the one the equation is defined. The answer by Optimization team is correct, although it has a small mistake in the formulation. …
Daniel V.'s user avatar
3 votes
2 answers
674 views

Write constraints with relationship sets in Pyomo

.$ In GAMS, this is easy. … However, I would like to know if there is a more elegant, compact way of writing this, such as GAMS'. Thank you for your time! …
Daniel V.'s user avatar
0 votes

Write constraints with relationship sets in Pyomo

I will mark the answer from Optimization team, which is completely correct, as it works for the problem given, although it does not use tuple sets. I will also put here for completion how I ended up d …
Daniel V.'s user avatar