Search found 8 matches
- 1 day ago
- Forum: Modeling
- Topic: Error on finding max value in MIP
- Replies: 1
- Views: 83
Error on finding max value in MIP
Hi, I stuck on finding max value each column by writing constraint in MIP. Unfortunately, the error was Error 59 Endogenous prod smin smax require model type "dnlp" Error 256 equation eq2.. VAR prod smin smax Suppose I have EM(f,t,i) as the positive variable, which is the result from previ...
- 2 months ago
- Forum: Modeling
- Topic: How can I get very old GAMS version?
- Replies: 1
- Views: 1389
How can I get very old GAMS version?
I would like to activate GAMS 24.8.5 again but this versions seems to old. Is there any source for downloading? Thanks.
- 3 months ago
- Forum: Modeling
- Topic: How can I remember index and call it as the between function?
- Replies: 1
- Views: 2122
How can I remember index and call it as the between function?
How can I code these two constriants. It looks like the between function that we need to remember t value in the first constraint and then use this t value in the second constraint for termination. Suppose t /1*10/ .
- 1 year ago
- Forum: Modeling
- Topic: How can I use IF with looping in GAMS?
- Replies: 0
- Views: 3246
How can I use IF with looping in GAMS?
Hi! I am a beginner level in this program. I try to improve this loop according to this condition. The details are as follows: image.png When CUTI(k) = CUTI(k)-4 then, If the result shows this CUTI(k) value greater than 0, then print this CUTI(k) value. If the result shows CUTI(k) value less than 0,...
- 1 year ago
- Forum: Modeling
- Topic: How can I use only less than but not equal in constraint
- Replies: 1
- Views: 1716
How can I use only less than but not equal in constraint
It is io difficult to do this. obj.. R =e= sum((i,j,k),a(j,k)* b(j)*c(j,k)*x(i,j,k)) + sum((i,j,k),a(j,k)* b(j)*c(j,k)*z(i,j,k)) + sum((i,j,k), x(i,j,k)*h(i,j)*m(i,j)) + sum((i,j,k), z(i,j,k)*h(i,j)*m(i,j)); con1(i,k).. sum((j),a(j,k)* b(j)*x(i,j,k)) =g= d(i,k); con2(i,k).. sum((j),a(j,k)* b(j)*z(i,...
- 1 year ago
- Forum: Modeling
- Topic: How can I connect two indexs (i1,i2) and then put it in GAMS coding?
- Replies: 2
- Views: 2273
- 1 year ago
- Forum: Modeling
- Topic: Excuse me, I stuck on how to create while loop in demand and supply constraints
- Replies: 0
- Views: 2945
- 1 year ago
- Forum: Modeling
- Topic: How can I connect two indexs (i1,i2) and then put it in GAMS coding?
- Replies: 2
- Views: 2273