个人想法: ) a0 R3 }1 C4 U% X' C' |8 e% B. @约束条件是在上面的Table里面直接输入最大最小值吧。- @7 d# n _& g! A7 Y
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). ( q2 J4 x6 P8 z; r! k0 i! F) s$ V( I2 l
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). & Z% ?/ ~' C6 R( R7 G& z% h0 u下面的Equation栏里面应该写入目标函数吧。 k9 q/ A4 K& H3 l; F& oMaxProfit (MiniCost)= Var0 + Var1 + Var2;