LinearProgramming
Usage
• LinearProgramming[c, m, b] 求在约束  和  下最小化量 c.x 的向量 x.
Notes
• 在向量c 和 b 及矩阵 m 的所有分量必须是数。
•如果输入是精确的,LinearProgramming 给出精确有理数。 • LinearProgramming 接受相同的选项Tolerance为ConstrainedMax. • 参见 Mathematica 全书 : 节 3.9.9.
Further Examples
This is a linear programming problem given in terms of a cost function and inequalities.
In[1]:=
|
Out[1]=
|
This is the same problem given in matrix form.
In[2]:=
|
Out[2]=
|
|