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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8.5. SENSITIVITY ANALYSIS WITH THE COMMAND LINE TOOL 77<br />

* Comment 1<br />

BOUNDS CONSTRAINTS<br />

U "c1" * Analyze upper bound for constraint named c1<br />

U 2<br />

* Analyze upper bound for the second constraint<br />

U 3-5 * Analyze upper bound for constraint number 3 to number 5<br />

BOUNDS VARIABLES<br />

L 2-4<br />

* This section specifies which bounds on variables should be analyzed<br />

L "x11"<br />

OBJECTIVE VARIABLES<br />

"x11"<br />

* This section specifies which objective coefficients should be analyzed<br />

2<br />

Figure 8.3: Example of the sensitivity file format.<br />

the lower bound, on the upper bound, or on both the lower and the upper bound respectively. Next,<br />

a single constraint (variable) or range of constraints (variables) is specified.<br />

Recall from Section 8.4.1.1 that equality constraints are handled in a special way. Sensitivity analysis<br />

of an equality constraint can be specified with either L, U, or LU, all indicating the same, namely that<br />

upper and lower bounds (which are equal) are perturbed simultaneously.<br />

As an example consider<br />

BOUNDS CONSTRAINTS<br />

L "cons1"<br />

U "cons2"<br />

LU "cons3"-"cons6"<br />

which requests that sensitivity analysis is performed on the lower bound of the constraint named<br />

cons1, on the upper bound of the constraint named cons2, and on both lower and upper bound on<br />

the constraints named cons3 to cons6.<br />

It is allowed to use indexes instead of names, for instance<br />

BOUNDS CONSTRAINTS<br />

L "cons1"<br />

U 2<br />

LU 3 - 6<br />

<strong>The</strong> character ”*” indicates that the <strong>line</strong> contains a comment and is ignored.<br />

8.5.2 Example: Sensitivity analysis from <strong>command</strong> <strong>line</strong><br />

As an example consider the sensitivity.ssp file shown in Figure 8.3. <strong>The</strong> <strong>command</strong><br />

mosek transport.lp -sen sensitivity.ssp<br />

produces the transport.sen file shown below.<br />

-d MSK IPAR SENSITIVITY TYPE MSK SENSITIVITY TYPE BASIS<br />

BOUNDS CONSTRAINTS<br />

INDEX NAME BOUND LEFTRANGE RIGHTRANGE LEFTPRICE RIGHTPRICE<br />

0 c1 UP -6.574875e-18 5.000000e+02 1.000000e+00 1.000000e+00<br />

2 c3 UP -6.574875e-18 5.000000e+02 1.000000e+00 1.000000e+00<br />

3 c4 FIX -5.000000e+02 6.574875e-18 2.000000e+00 2.000000e+00<br />

4 c5 FIX -1.000000e+02 6.574875e-18 3.000000e+00 3.000000e+00

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

Saved successfully!

Ooh no, something went wrong!