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 />
EXAMPLE:<br />
sage: lp = MixedIntegerLinearProgram(solver = ’GLPK’, maximization = False)<br />
sage: x, y = lp[0], lp[1]<br />
sage: lp.add_constraint(-2*x + y