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.

196 CHAPTER 15. SENSITIVITY ANALYSIS<br />

* A comment<br />

BOUNDS CONSTRAINTS<br />

U|L|LU [cname1]<br />

U|L|LU [cname2]-[cname3]<br />

BOUNDS VARIABLES<br />

U|L|LU [vname1]<br />

U|L|LU [vname2]-[vname3]<br />

OBJECTIVE VARIABLES<br />

[vname1]<br />

[vname2]-[vname3]<br />

Figure 15.3: <strong>The</strong> sensitivity analysis file format.<br />

changed by setting the<br />

MSK SPAR SENSITIVITY RES FILE NAME<br />

parameter By default a basis type sensitivity analysis is performed. However, the type of sensitivity<br />

analysis (basis or optimal partition) can be changed by setting the parameter<br />

MSK IPAR SENSITIVITY TYPE<br />

appropriately. Following values are accepted for this parameter:<br />

• MSK SENSITIVITY TYPE BASIS<br />

• MSK SENSITIVITY TYPE OPTIMAL PARTITION<br />

It is also possible to use the command line<br />

mosek myproblem.mps -d MSK IPAR SENSITIVITY ALL MSK ON<br />

in which case a sensitivity analysis on all the parameters is performed.<br />

15.6.1 Sensitivity analysis specification file<br />

<strong>MOSEK</strong> employs an MPS like file format to specify on which model parameters the sensitivity analysis<br />

should be performed. As the optimal partition type sensitivity analysis can be computationally<br />

expensive it is important to limit the sensitivity analysis. <strong>The</strong> format of the sensitivity specification<br />

file is shown in figure 15.3, where capitalized names are keywords, and names in brackets are names<br />

of the constraints and variables to be included in the analysis.<br />

<strong>The</strong> sensitivity specification file has three sections, i.e.<br />

• BOUNDS CONSTRAINTS: Specifies on which bounds on constraints the sensitivity analysis should<br />

be performed.<br />

• BOUNDS VARIABLES: Specifies on which bounds on variables the sensitivity analysis should be<br />

performed.<br />

• OBJECTIVE VARIABLES: Specifies on which objective coefficients the sensitivity analysis should<br />

be performed.

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

Saved successfully!

Ooh no, something went wrong!