25.11.2015 Views

The MOSEK Python optimizer API manual Version 7.0 (Revision 141)

Optimizer API for Python - Documentation - Mosek

Optimizer API for Python - Documentation - Mosek

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

12.7. UNDERSTANDING SOLUTION QUALITY 161<br />

to discuss good formulations for mixed-integer problems. For discussions on this topic see for<br />

example [16].<br />

12.7 Understanding solution quality<br />

To determine the quality of the solution one should check the following:<br />

• <strong>The</strong> solution status key returned by <strong>MOSEK</strong>.<br />

• <strong>The</strong> optimality gap: A measure for how much the located solution can deviate from the optimal<br />

solution to the problem.<br />

• Feasibility. How much the solution violates the constraints of the problem.<br />

<strong>The</strong> optimality gap is a measure for how close the solution is to the optimal solution. <strong>The</strong> optimality<br />

gap is given by<br />

ɛ = |(objective value of feasible solution) − (objective bound)|.<br />

<strong>The</strong> objective value of the solution is guarantied to be within ɛ of the optimal solution.<br />

<strong>The</strong> optimality gap can be retrieved through the solution item dinfitem.mio obj abs gap. Often it<br />

is more meaningful to look at the optimality gap normalized with the magnitude of the solution. <strong>The</strong><br />

relative optimality gap is available in dinfitem.mio obj rel gap.

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

Saved successfully!

Ooh no, something went wrong!