个人想法:+ \2 |/ v) V' M C
约束条件是在上面的Table里面直接输入最大最小值吧。 + P) R4 z1 D/ [/ D9 A- Q' L& UMinimum Limit: Table Column 5: The minimum value that this variable can be set to by the Optimizer block. If it is entered without a decimal point, it can only assume integer values. Do not enter limits for variables that are used as results from the model (i.e. Exited from an Exit block).& p/ j J9 Q# K
% P! n2 G) J0 wMaximum Limit: Table Column 6: The maximum value that this variable can be set to by the Optimizer block. If it is entered without a decimal point, it can only assume integer values. Do not enter limits for variables that are used as results from the model (i.e. Exited from an Exit block).0 R ~: w+ h! K% D" Q X% q2 p. O" i
下面的Equation栏里面应该写入目标函数吧。 6 O9 u6 U7 K( d) f! d2 g1 VMaxProfit (MiniCost)= Var0 + Var1 + Var2;