A problem with parentheses

Hello GAMS users;

I’am running a GAMS code with this command:

W.lo(i, j)$[(D(i, j)/55) ≤ (FV0(i, j) ∗ P(i) ∗ 55)] = FV0(i, j)/55;

Yet, I always get “Error 8: ‘)’ expected”, I’ve tried my best to count the parentheses and correct the command, but i didn’t succeed.

Any help with this please?

Thnaks!

Try this: W.lo(i, j)$(D(i, j)/55 <= (FV0(i, j)* P(i) * 55) ) = FV0(i, j)/55;

Not sure what editor you used, but GAMS does not like your “≤” nor the “∗”. These are unicode characters not part of the GAMS language, hence the compiler gets confused. Just use the regular ASCII characters/character sequence “<=” and “*”.

-Michael

@vistro and @bussieck
Thnak you both of you for the help!