09.02.2015 Views

Sage Reference Manual: Numerical Optimization - Mirrors

Sage Reference Manual: Numerical Optimization - Mirrors

Sage Reference Manual: Numerical Optimization - Mirrors

SHOW MORE
SHOW LESS

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!