如何在gams中设置单个方程中单个变量的下限和上限
How to set the lower and upper bounds of a single variable in a single equation in gams
这可能吗?:
boundary_of_x..
19.0 =l= x =g= 22.1;
其中 x 是一个正变量,boundary_of_x 是一个方程。或者我必须用两个方程来做这个吗?
你不能在一个等式中做到这一点,你需要两个,或者(更好)使用变量的 .lo
和 .up
属性:
x.lo = 19.0; x.up = 22.1;
这可能吗?:
boundary_of_x..
19.0 =l= x =g= 22.1;
其中 x 是一个正变量,boundary_of_x 是一个方程。或者我必须用两个方程来做这个吗?
你不能在一个等式中做到这一点,你需要两个,或者(更好)使用变量的 .lo
和 .up
属性:
x.lo = 19.0; x.up = 22.1;