个人想法:5 ^; C3 m) ]8 k" W3 H
约束条件是在上面的Table里面直接输入最大最小值吧。0 o0 X2 d$ e! p8 X; ^1 _% `; u
Minimum 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). 6 t! W( |& q& J* s" ]8 G k9 z. a& b5 v2 l# D. [: e8 i9 w6 X
Maximum 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). # l3 o! M! ^! e6 E下面的Equation栏里面应该写入目标函数吧。 7 E6 N ~* Y9 IMaxProfit (MiniCost)= Var0 + Var1 + Var2;