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 2<br />

About this <strong>manual</strong><br />

This <strong>manual</strong> covers the general functionality of <strong>MOSEK</strong> and the usage of the <strong>MOSEK</strong> <strong>Python</strong> <strong>API</strong>.<br />

<strong>The</strong> <strong>MOSEK</strong> <strong>Python</strong> Application Programming Interface makes it possible to access the <strong>MOSEK</strong><br />

<strong>optimizer</strong> from any <strong>Python</strong> application. <strong>The</strong> whole functionality of the native C <strong>API</strong> is available<br />

through a thin class-based interface using native <strong>Python</strong> types and exceptions. All methods in the<br />

interface are thin wrappers around functions in the native C <strong>API</strong>, keeping the overhead induced by<br />

the <strong>API</strong> to a minimum.<br />

<strong>The</strong> <strong>API</strong> can be used in <strong>Python</strong> scripts as well as from the interactive <strong>Python</strong> command-line. <strong>The</strong><br />

<strong>Python</strong> interface is particularly well-suited for fast prototyping of models and for debugging and<br />

displaying portions of a problem loaded from a file.<br />

<strong>The</strong> <strong>Python</strong> interface consists of a mosek module that defines objects, functions and constants.<br />

New users of the <strong>MOSEK</strong> <strong>Python</strong> <strong>API</strong> are encouraged to read:<br />

• Chapter 4 on compiling and running the distributed examples.<br />

• <strong>The</strong> relevant parts of Chapter 5, i.e. at least the general introduction and the linear optimization<br />

section.<br />

• Chapter 9 for a set of guidelines about developing, testing, and debugging applications employing<br />

<strong>MOSEK</strong>.<br />

This should introduce most of the data structures and functionality necessary to implement and solve<br />

an optimization problem.<br />

Chapter 10 contains general material about the mathematical formulations of optimization problems<br />

compatible with <strong>MOSEK</strong>, as well as common tips and tricks for reformulating problems so that they<br />

can be solved by <strong>MOSEK</strong>.<br />

Hence, Chapter 10 is useful when trying to find a good formulation of a specific model.<br />

More advanced examples of modeling and model debugging are located in<br />

• Chapter 14 which deals with analysis of infeasible problems,<br />

15

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

Saved successfully!

Ooh no, something went wrong!