Hi, I can’t understand these codes are for:
C(k) physical space required by vehicles k
/ k1 50, k2 75, k3 100/
$195,318,409
The Sets of k is k1k3
Hi, I can’t understand these codes are for:
C(k) physical space required by vehicles k
/ k1 50, k2 75, k3 100/
$195,318,409
The Sets of k is k1k3
Hi,
The following compiles without any issues.
Set k / k1*k3 /;
parameter C(k) physical space required by vehicles k / k1 50, k2 75, k3 100/;
Maybe you can share the code that fails?
best,
Fred
Sure.
Sets
c /c1c3/
k /k1k3/
i /i1i4/
j /j1j4/;
Parameters
h(c)
/c1 100, c2 200, c3 150/
d(i,j)
/ i1.j1 10, i1.j2 20, i1.j3 30, i1.j4 40, i2.j1 20, i2.j2 10, i2.j3 40, i2.j4 30, i3.j1 30, i3.j2 40, i3.j3 10, i3.j4 20, i4.j1 40, i4.j2 30, i4.j3 20, i4.j4 10 /
C(k)
/k1 50, k2 75, k3 100/
$195,318,409
GAMS is case insensitive. You cannot have a symbol “c” and another symbol “C”.
I hope this helps.