25.11.2015 Views

The MOSEK command line tool Version 7.0 (Revision 141)

The MOSEK command line tool. Version 7.0 ... - Documentation

The MOSEK command line tool. Version 7.0 ... - Documentation

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

<strong>The</strong> OPF format<br />

<strong>The</strong> Optimization Problem Format (OPF) is an alternative to LP and MPS files for specifying optimization<br />

problems. It is row-oriented, inspired by the CPLEX LP format.<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 />

15.1 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 />

15.2 <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-<strong>line</strong> comment.<br />

[objective min ’myobj’]<br />

297

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

Saved successfully!

Ooh no, something went wrong!