Sage Reference Manual: Numerical Optimization - Mirrors
Sage Reference Manual: Numerical Optimization - Mirrors
Sage Reference Manual: Numerical Optimization - Mirrors
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Sage</strong> <strong>Reference</strong> <strong>Manual</strong>: <strong>Numerical</strong> <strong>Optimization</strong>, Release 6.1.1<br />
sage: p = MixedIntegerLinearProgram()<br />
sage: x, y = p[0], p[1]<br />
sage: p.add_constraint(x + y, max = 10)<br />
sage: p.add_constraint(x - y, max = 0)<br />
sage: p.add_constraint(x, max = 4)<br />
sage: p.show()<br />
Maximization:<br />
Constraints:<br />
x_0 + x_1