Search found 4 matches
- 6 years ago
- Forum: Modeling
- Topic: Stuck at some tolerance value
- Replies: 1
- Views: 2164
Stuck at some tolerance value
I modeled a workforce planning problem in GAMS. The model generally assigns workers to shifts and to tasks according to their skill set and according to the given workload. In the model we only have 5 regular workers and 17 subcontracted workers (they are used when needed and costs extra). The probl...
- 6 years ago
- Forum: Syntax
- Topic: Questions about Summation
- Replies: 1
- Views: 2940
Questions about Summation
Hi, i have two questions about sum notation Think that i have a set t /1*10/ and i have a binary variable x(t) questions 1) How can i sum x(t) starting from t=2 2) How can i exclude t values which i want that is: I want to say that sum(t, x(t)) =e= 1 BUT i dont want this equation include t=9 and t=1...
- 6 years ago
- Forum: Syntax
- Topic: Dimension Different Error
- Replies: 3
- Views: 3690
Re: Dimension Different Error
Thank you for reply. It has worked. I want to ask one more thing. for example i defined two sets. i /1*3/ and j /1*3/ and i defined binary variable x(i) and i want to use j in variable x as a set. I mean i want gams to understand x(j) since both i and j are defined /1*3/ How can i do that. Note: Whe...
- 6 years ago
- Forum: Syntax
- Topic: Dimension Different Error
- Replies: 3
- Views: 3690
Dimension Different Error
Hi i am trying to do modelling in gams but i faced such a problem: in one of my equations i write precedence(i).. sum(k, x(i,k)*k) =L= something for example. When i write like this it gives dimension different error. But if i write this equation in opened form for i=1 for example, it doesnt give any...