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.

302 CHAPTER 15. THE OPF FORMAT<br />

15.2.2 Numbers<br />

Numbers, when used for parameter values or coefficients, are written in the usual way by the printf<br />

function. That is, they may be prefixed by a sign (+ or -) and may contain an integer part, decimal<br />

part and an exponent. <strong>The</strong> decimal point is always ‘.’ (a dot). Some examples are<br />

1<br />

1.0<br />

.0<br />

1.<br />

1e10<br />

1e+10<br />

1e-10<br />

Some invalid examples are<br />

e10 # invalid, must contain either integer or decimal part<br />

. # invalid<br />

.e10 # invalid<br />

More formally, the following standard regular expression describes numbers as used:<br />

[+|-]?([0-9]+[.][0-9]*|[.][0-9]+)([eE][+|-]?[0-9]+)?<br />

15.2.3 Names<br />

Variable names, constraint names and objective name may contain arbitrary characters, which in some<br />

cases must be enclosed by quotes (single or double) that in turn must be preceded by a backslash.<br />

Unquoted names must begin with a letter (a-z or A-Z) and contain only the following characters: the<br />

letters a-z and A-Z, the digits 0-9, braces ({ and }) and underscore ( ).<br />

Some examples of legal names:<br />

an unquoted name<br />

another name{123}<br />

’single quoted name’<br />

"double quoted name"<br />

"name with \\"quote\\" in it"<br />

"name with []s in it"<br />

15.3 Parameters section<br />

In the vendor section solver parameters are defined inside the parameters subsection. Each parameter<br />

is written as<br />

[p PARAMETER NAME] value [/p]<br />

where PARAMETER NAME is replaced by a <strong>MOSEK</strong> parameter name, usually of the form MSK IPAR ...,<br />

MSK DPAR ... or MSK SPAR ..., and the value is replaced by the value of that parameter; both integer<br />

values and named values may be used. Some simple examples are:<br />

[vendor mosek]<br />

[parameters]<br />

[p MSK IPAR OPF MAX TERMS PER LINE] 10 [/p]

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

Saved successfully!

Ooh no, something went wrong!