个人想法:5 s; P5 {& J+ P/ u+ j8 ~
约束条件是在上面的Table里面直接输入最大最小值吧。8 b" E j! r; N6 J
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). * S2 K; q0 B/ w1 l; H4 W8 T& o- S; _- H3 @) l( w! U9 l; k+ r
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).2 v/ i- f) t/ }0 a7 v" A; Q
下面的Equation栏里面应该写入目标函数吧。" U* g* P* G; }
MaxProfit (MiniCost)= Var0 + Var1 + Var2;