Search found 8 matches

by Agustino
2 weeks ago
Forum: Modeling
Topic: Error on finding max value in MIP
Replies: 1
Views: 898

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...
by Agustino
3 months ago
Forum: Modeling
Topic: How can I get very old GAMS version?
Replies: 1
Views: 2366

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.
by Agustino
3 months ago
Forum: Modeling
Topic: How can I remember index and call it as the between function?
Replies: 1
Views: 2968

How can I remember index and call it as the between function?

image.png
image.png (13.87 KiB) Viewed 2965 times
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/ .
by Agustino
1 year ago
Forum: Modeling
Topic: How can I use IF with looping in GAMS?
Replies: 0
Views: 5176

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,...
by Agustino
1 year ago
Forum: Modeling
Topic: How can I use only less than but not equal in constraint
Replies: 1
Views: 1934

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,...