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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

606 APPENDIX F. <strong>MOSEK</strong> FILE FORMATS<br />

Apart from containing objective, constraints, bounds etc. it may contain complete or partial solutions,<br />

comments and extra information relevant for solving the problem. It is designed to be easily read and<br />

modified by hand and to be forward compatible with possible future extensions.<br />

F.3.1<br />

Intended use<br />

<strong>The</strong> OPF file format is meant to replace several other files:<br />

• <strong>The</strong> LP file format. Any problem that can be written as an LP file can be written as an OPF file<br />

to; furthermore it naturally accommodates ranged constraints and variables as well as arbitrary<br />

characters in names, fixed expressions in the objective, empty constraints, and conic constraints.<br />

• Parameter files. It is possible to specify integer, double and string parameters along with the<br />

problem (or in a separate OPF file).<br />

• Solution files. It is possible to store a full or a partial solution in an OPF file and later reload it.<br />

F.3.2<br />

<strong>The</strong> file format<br />

<strong>The</strong> format uses tags to structure data. A simple example with the basic sections may look like this:<br />

[comment]<br />

This is a comment. You may write almost anything here...<br />

[/comment]<br />

# This is a single-line comment.<br />

[objective min ’myobj’]<br />

x + 3 y + x^2 + 3 y^2 + z + 1<br />

[/objective]<br />

[constraints]<br />

[con ’con01’] 4

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

Saved successfully!

Ooh no, something went wrong!