Hi!
Since I am not very experienced in using GAMS, I can not understand what the problem is. I leave the code attached because maybe someone can help me. The data entered are validation data and not the real data.
Thank you very much!
Search found 5 matches
- 2 years ago
- Forum: Modeling
- Topic: Incorrect solution in code running
- Replies: 4
- Views: 3746
- 2 years ago
- Forum: Modeling
- Topic: Incorrect solution in code running
- Replies: 4
- Views: 3746
Incorrect solution in code running
Hello everyone, I have implemented a mathematical model in GAMS whose code runs without errors. However, only the binary variables have the correct solution. All the rest are zero, which is not supposed to be. I think the problem is in the code and not in the mathematical formulation, but I can't fi...
- 2 years ago
- Forum: Modeling
- Topic: Set is under control already
- Replies: 5
- Views: 3857
Re: Set is under control already
Hello! I have a problem with this same error 125. The constraint I want to write is as follows: image.png So, in GAMS I typed: cstr35(b,m,i,j,n,t).. sum(j, v(b,m,i,j,t)) + sum(n, v1(b,m,i,n,t)) =e= sum(k, o(b,m,j,k,t)) + sum(k, o1(b,m,n,k,t)); I have two errors saying the "Set is under control ...
- 2 years ago
- Forum: Modeling
- Topic: uniformInt function
- Replies: 2
- Views: 1766
Re: uniformInt function
I understood it now. Thank you very much!
- 2 years ago
- Forum: Modeling
- Topic: uniformInt function
- Replies: 2
- Views: 1766
uniformInt function
Hello! One of the parameters I want to include in a model I'm working on is associated with four distinct indices, whose sets I have already defined. These are: P products /p1*p32/ D donor locations /d1*d4/ T planning periods /t1*t7/ S scenarios /s1*s3/ The BS(P,D,T,S) parameter will take values gen...