Error 170

Problems with syntax of GAMS
Post Reply
Powerbauer0815
User
User
Posts: 2
Joined: 3 years ago

Error 170

Post by Powerbauer0815 »

Hey :)
could anybody figure out why the table doesn't work? Would appreciate any help. Thanks!
(real) Zeit und Wartungserweiterung.gms
(2.73 KiB) Downloaded 210 times
abhosekar
Moderator
Moderator
Posts: 295
Joined: 3 years ago

Re: Error 170

Post by abhosekar »

multiple issues.
You are first defining wc as a parameter and then also defining it as a table. if you want to define table, then remove the definition from parameter block.
when you define wc(i,s), i is the set defining rows and s is the set defining columns.
The table definition that is defined here has s1..s3 in rows and i1..i6 in columns. Therefore, it should be defined as wc(s,i) instead.

Hope this helps.

- Atharv
Powerbauer0815
User
User
Posts: 2
Joined: 3 years ago

Re: Error 170

Post by Powerbauer0815 »

Thank you ! That helped :)
Post Reply