Home > other >  GAMS equation in certain conditions of assignment
GAMS equation in certain conditions of assignment

Time:03-19



As shown in figure is I want to achieve effect,
Because the if and the loop statements in the GAMS cannot equation is used to assignment, so I used the $, as follows:
Equation constr_1 (I $i.v al<> J.v al, j);
Constr_1 (I $i.v al<> J.v al, j).. T (I) + M * (1 - x (I, j))=g=t (j) + p (j);

Here. Val suffixes using reference is:

But there is no detailed introduction, I also don't know specific how should use,

After the operation error:
185 Set identifier or '*' expected
142 No suffix allowed here - suffix ignored
148 Dimension company - The symbol is referenced with The more/less
Indices as declared
  • Related