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.

A.2. CLASS TASK 299<br />

markj : mark<br />

<strong>The</strong> value of markj[j] specifies for which bound (upper or lower) on variable subj[j]<br />

sensitivity analysis should be performed.<br />

rightpricei : double[]<br />

rightpricei[i] is the right shadow price for the upper/lower bound (indicated by marki[i])<br />

of the constraint with index subi[i].<br />

rightpricej : double[]<br />

rightpricej[j] is the right shadow price for the upper/lower bound (indicated by marki[j])<br />

on variable subj[j] .<br />

rightrangei : double[]<br />

rightrangei[i] is the right range for the upper/lower bound (indicated by marki[i]) of<br />

the constraint with index subi[i].<br />

rightrangej : double[]<br />

rightrangej[j] is the right range for the upper/lower bound (indicated by marki[j]) on<br />

variable subj[j].<br />

subi : int[]<br />

Indexes of bounds on constraints to analyze.<br />

subj : int[]<br />

Indexes of bounds on variables to analyze.<br />

Description:<br />

Calculates sensitivity information for bounds on variables and constraints.<br />

For details on sensitivity analysis and the definitions of shadow price and linearity interval see<br />

chapter 15.<br />

<strong>The</strong> constraints for which sensitivity analysis is performed are given by the data structures:<br />

• subi Index of constraint to analyze.<br />

• marki Indicate for which bound of constraint subi[i] sensitivity analysis is performed. If<br />

marki[i] = mark.up the upper bound of constraint subi[i] is analyzed, and if marki[i]<br />

= mark.lo the lower bound is analyzed. If subi[i] is an equality constraint, either mark.lo<br />

or mark.up can be used to select the constraint for sensitivity analysis.<br />

Consider the problem:<br />

Suppose that<br />

minimize x 1 + x 2<br />

subject to − 1 ≤ x 1 − x 2 ≤ 1,<br />

x 1 = 0,<br />

x 1 ≥ 0, x 2 ≥ 0<br />

• numi = 1;<br />

• subi = [0];

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

Saved successfully!

Ooh no, something went wrong!