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!
A problem with parentheses
Re: A problem with parentheses
Try this: W.lo(i, j)$(D(i, j)/55 <= (FV0(i, j)* P(i) * 55) ) = FV0(i, j)/55;
Re: A problem with parentheses
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
-Michael
-
- User
- Posts: 13
- Joined: 4 years ago
Re: A problem with parentheses
@vistro and @bussieck
Thnak you both of you for the help!
Thnak you both of you for the help!