Error 195,318,409

Problems with modeling
Post Reply
Paren
User
User
Posts: 8
Joined: 11 months ago

Error 195,318,409

Post 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
Fred
Posts: 372
Joined: 7 years ago

Re: Error 195,318,409

Post 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
Paren
User
User
Posts: 8
Joined: 11 months ago

Re: Error 195,318,409

Post 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
Fred
Posts: 372
Joined: 7 years ago

Re: Error 195,318,409

Post by Fred »

GAMS is case insensitive. You cannot have a symbol "c" and another symbol "C".

I hope this helps.
Post Reply