Page 1 of 1

Error 195,318,409

Posted: Thu Apr 13, 2023 4:26 pm
by Paren
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 k1*k3

Re: Error 195,318,409

Posted: Thu Apr 13, 2023 6:54 pm
by Fred
Hi,

The following compiles without any issues.

Code: Select all

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

Re: Error 195,318,409

Posted: Thu Apr 13, 2023 7:58 pm
by Paren
Sure.
Sets
c /c1*c3/
k /k1*k3/
i /i1*i4/
j /j1*j4/;
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

Re: Error 195,318,409

Posted: Thu Apr 13, 2023 8:17 pm
by Fred
GAMS is case insensitive. You cannot have a symbol "c" and another symbol "C".

I hope this helps.