Hi there,
I want to set multiple variables equal to each other without having to define multiple equations for that. Is there a smooth way to do this?
I.e. something like this:
Neweq… AI(“1”)=E=BI(“1”)=E=CI(“1”)=E=DI(“1”)
Thank you
Hi there,
I want to set multiple variables equal to each other without having to define multiple equations for that. Is there a smooth way to do this?
I.e. something like this:
Neweq… AI(“1”)=E=BI(“1”)=E=CI(“1”)=E=DI(“1”)
Thank you
If GAMS allows using multiple mathematical operators in an equation, yes but if not, no.
This is the general syntax for defining equation in GAMS:
eqn_name(index_list)[$logical_condition(s)].. expression eqn_type expression;
Hey,
It didn´t work the way I tried it with the multiple =E= signs.
And I don’t know the value, I try to optimize different paths that diverge, but they need to be equal in the first period.
Thanks
then I would try this:
Neweq.. AI("1")$(BI("1") = CI("1") and CI("1") = DI("1") ) =E= BI("1")
Thank you for solution, it worked for me.