I have a MIP model, from the equation I have determined a vector X. Now I want to determine minimum-
Y(S) = min(1,X(S));
How can I model the same in GAMS?
Search found 2 matches
- 6 years ago
- Forum: Syntax
- Topic: Determine minimum
- Replies: 0
- Views: 2389
- 6 years ago
- Forum: Syntax
- Topic: Assign Set in constrant
- Replies: 1
- Views: 2431
Assign Set in constrant
I have a set
set S
p1 / 1 ,2, 3 /
p2 / 4,5 /
p3 /6, 7 /
p4 / 8 /
p5 / 9 /
p6 / 10, 11, 12, 13 ,14, 15/;
I want to impliment the same with the following mathematical eq.
forall (i in P)
sum(j in S(i)) Z(j) <= 10^100;
set S
p1 / 1 ,2, 3 /
p2 / 4,5 /
p3 /6, 7 /
p4 / 8 /
p5 / 9 /
p6 / 10, 11, 12, 13 ,14, 15/;
I want to impliment the same with the following mathematical eq.
forall (i in P)
sum(j in S(i)) Z(j) <= 10^100;