个人想法:% ]2 I5 _. J4 z: J2 u. P
约束条件是在上面的Table里面直接输入最大最小值吧。 7 y7 u3 w4 a3 R1 N' K# SMinimum 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). " R. s: p% e" M( M' ^ % K7 I# j: V8 A( l; W" g0 s eMaximum 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). ) p" ^5 U5 S8 H8 |* L4 m- a6 |下面的Equation栏里面应该写入目标函数吧。; Z: H+ M4 R _+ L0 M2 r
MaxProfit (MiniCost)= Var0 + Var1 + Var2;