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.

Chapter 9<br />

Usage guidelines<br />

<strong>The</strong> purpose of this chapter is to present some general guidelines to follow when using <strong>MOSEK</strong>.<br />

9.1 Verifying the results<br />

<strong>The</strong> main purpose of <strong>MOSEK</strong> is to solve optimization problems and therefore the most fundamental<br />

question to be asked is whether the solution reported by <strong>MOSEK</strong> is a solution to the desired<br />

optimization problem.<br />

<strong>The</strong>re can be several reasons why it might be not case. <strong>The</strong> most prominent reasons are:<br />

• A wrong problem. <strong>The</strong> problem inputted to <strong>MOSEK</strong> is simply not the right problem, i.e. some<br />

of the data may have been corrupted or the model has been incorrectly built.<br />

• Numerical issues. <strong>The</strong> problem is badly scaled or otherwise badly posed.<br />

• Other reasons. E.g. not enough memory or an explicit user request to stop.<br />

<strong>The</strong> first step in verifying that <strong>MOSEK</strong> reports the expected solution is to inspect the solution summary<br />

generated by <strong>MOSEK</strong>. <strong>The</strong> solution summary provides information about<br />

• the problem and solution statuses,<br />

• objective value and infeasibility measures for the primal solution, and<br />

• objective value and infeasibility measures for the dual solution, where applicable.<br />

By inspecting the solution summary it can be verified that <strong>MOSEK</strong> produces a feasible solution, and, in<br />

the continuous case, the optimality can be checked using the dual solution. Furthermore, the problem<br />

itself ca be inspected using the problem analyzer discussed in section 13.1.<br />

If the summary reports conflicting information (e.g. a solution status that does not match the actual<br />

solution), or the cause for terminating the solver before a solution was found cannot be traced back to<br />

119

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

Saved successfully!

Ooh no, something went wrong!