OJ-Problems-Source/.ACM-Templates/.Not classified/simplex/remark.tex
2016-08-13 23:36:53 +08:00

5 lines
321 B
TeX
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

n个约束m个变量。
process 返回值为-inf表示无解inf表示无穷解否则表示最优解。
矩阵a[0][1\dots m]表示目标函数的系数。举例线性规划:
$\max(-2x -3y - 4z)$, 其中$3x + 2y + z \le 10, 2x + 5y + 3z \le 15$. 数组a应为: \{\{0,-2,-3,-4\},\{10,-3,-2,-1\},\{15,-2,-5,-3\}\}.