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.

F.3. THE OPF FORMAT 605<br />

iparam.write generic names = onoffkey.on<br />

which will cause all names to be renamed systematically in the output file.<br />

F.2.4<br />

Formatting of an LP file<br />

A few parameters control the visual formatting of LP files written by <strong>MOSEK</strong> in order to make it<br />

easier to read the files. <strong>The</strong>se parameters are<br />

iparam.write lp line width<br />

iparam.write lp terms per line<br />

<strong>The</strong> first parameter sets the maximum number of characters on a single line. <strong>The</strong> default value is 80<br />

corresponding roughly to the width of a standard text document.<br />

<strong>The</strong> second parameter sets the maximum number of terms per line; a term means a sign, a coefficient,<br />

and a name (for example ”+ 42 elephants”). <strong>The</strong> default value is 0, meaning that there is no<br />

maximum.<br />

F.2.4.1<br />

Speeding up file reading<br />

If the input file should be read as fast as possible using the least amount of memory, then it is important<br />

to tell <strong>MOSEK</strong> how many non-zeros, variables and constraints the problem contains. <strong>The</strong>se values can<br />

be set using the parameters<br />

iparam.read con<br />

iparam.read var<br />

iparam.read anz<br />

iparam.read qnz<br />

F.2.4.2<br />

Unnamed constraints<br />

Reading and writing an LP file with <strong>MOSEK</strong> may change it superficially. If an LP file contains<br />

unnamed constraints or objective these are given their generic names when the file is read (however<br />

unnamed constraints in <strong>MOSEK</strong> are written without names).<br />

F.3 <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.

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

Saved successfully!

Ooh no, something went wrong!