The MOSEK Python optimizer API manual Version 7.0 (Revision 141)
Optimizer API for Python - Documentation - Mosek Optimizer API for Python - Documentation - Mosek
190 CHAPTER 15. SENSITIVITY ANALYSIS Supply Demand 400 Plant 1 1 2 Store 1 800 Store 2 100 1 1200 Plant 2 5 Store 3 500 1000 Plant 3 2 1 2 Store 4 500 Figure 15.2: Supply, demand and cost of transportation.
15.4. SENSITIVITY ANALYSIS FOR LINEAR PROBLEMS 191 Basis type Con. β 1 β 2 σ 1 σ 2 1 −300.00 0.00 3.00 3.00 2 −700.00 +∞ 0.00 0.00 3 −500.00 0.00 3.00 3.00 4 −0.00 500.00 4.00 4.00 5 −0.00 300.00 5.00 5.00 6 −0.00 700.00 5.00 5.00 7 −500.00 700.00 2.00 2.00 Var. β 1 β 2 σ 1 σ 2 x 11 −∞ 300.00 0.00 0.00 x 12 −∞ 100.00 0.00 0.00 x 23 −∞ 0.00 0.00 0.00 x 24 −∞ 500.00 0.00 0.00 x 31 −∞ 500.00 0.00 0.00 x 33 −∞ 500.00 0.00 0.00 x 34 −0.000000 500.00 2.00 2.00 Optimal partition type Con. β 1 β 2 σ 1 σ 2 1 −300.00 500.00 3.00 1.00 2 −700.00 +∞ −0.00 −0.00 3 −500.00 500.00 3.00 1.00 4 −500.00 500.00 2.00 4.00 5 −100.00 300.00 3.00 5.00 6 −500.00 700.00 3.00 5.00 7 −500.00 700.00 2.00 2.00 Var. β 1 β 2 σ 1 σ 2 x 11 −∞ 300.00 0.00 0.00 x 12 −∞ 100.00 0.00 0.00 x 23 −∞ 500.00 0.00 2.00 x 24 −∞ 500.00 0.00 0.00 x 31 −∞ 500.00 0.00 0.00 x 33 −∞ 500.00 0.00 0.00 x 34 −∞ 500.00 0.00 2.00 Table 15.1: Ranges and shadow prices related to bounds on constraints and variables. Left: Results for the basis type sensitivity analysis. Right: Results for the optimal partition type sensitivity analysis. x 11 + x 12 ≤ 400, x 23 + x 24 ≤ 1200, x 31 + x 33 + x 34 ≤ 1000, x 11 + x 31 = 800, x 12 = 100, x 23 + x 33 = 500, x 24 + x 34 = 500, x 11 , x 12 , x 23 , x 24 , x 31 , x 33 , x 34 ≥ 0. (15.3) The basis type and the optimal partition type sensitivity results for the transportation problem are shown in Table 15.1 and 15.2 respectively. Examining the results from the optimal partition type sensitivity analysis we see that for constraint number 1 we have σ 1 ≠ σ 2 and β 1 ≠ β 2 . Therefore, we have a left linearity interval of [−300, 0] and a right interval of [0, 500]. The corresponding left and right shadow prices are 3 and 1 respectively. This implies that if the upper bound on constraint 1 increases by β ∈ [0, β 1 ] = [0, 500] then the optimal objective value will decrease by the value σ 2 β = 1β. Correspondingly, if the upper bound on constraint 1 is decreased by
- Page 161 and 162: 11.2. LINEAR OPTIMIZATION 139 11.2.
- Page 163 and 164: 11.2. LINEAR OPTIMIZATION 141 Whene
- Page 165 and 166: 11.2. LINEAR OPTIMIZATION 143 11.2.
- Page 167 and 168: 11.2. LINEAR OPTIMIZATION 145 • R
- Page 169 and 170: 11.5. NONLINEAR CONVEX OPTIMIZATION
- Page 171 and 172: 11.6. SOLVING PROBLEMS IN PARALLEL
- Page 173 and 174: 11.6. SOLVING PROBLEMS IN PARALLEL
- Page 175 and 176: 11.6. SOLVING PROBLEMS IN PARALLEL
- Page 177 and 178: Chapter 12 The optimizers for mixed
- Page 179 and 180: 12.3. THE MIXED-INTEGER CONIC OPTIM
- Page 181 and 182: 12.5. TERMINATION CRITERION 159 •
- Page 183 and 184: 12.7. UNDERSTANDING SOLUTION QUALIT
- Page 185 and 186: Chapter 13 The analyzers 13.1 The p
- Page 187 and 188: 13.1. THE PROBLEM ANALYZER 165 Cons
- Page 189 and 190: 13.2. ANALYZING INFEASIBLE PROBLEMS
- Page 191 and 192: 13.2. ANALYZING INFEASIBLE PROBLEMS
- Page 193 and 194: 13.2. ANALYZING INFEASIBLE PROBLEMS
- Page 195 and 196: 13.2. ANALYZING INFEASIBLE PROBLEMS
- Page 197 and 198: 13.2. ANALYZING INFEASIBLE PROBLEMS
- Page 199 and 200: Chapter 14 Primal feasibility repai
- Page 201 and 202: 14.2. AUTOMATIC REPAIR 179 One way
- Page 203 and 204: 14.3. FEASIBILITY REPAIR IN MOSEK 1
- Page 205 and 206: 14.3. FEASIBILITY REPAIR IN MOSEK 1
- Page 207 and 208: Chapter 15 Sensitivity analysis 15.
- Page 209 and 210: 15.4. SENSITIVITY ANALYSIS FOR LINE
- Page 211: 15.4. SENSITIVITY ANALYSIS FOR LINE
- Page 215 and 216: 15.5. SENSITIVITY ANALYSIS FROM THE
- Page 217 and 218: 15.6. SENSITIVITY ANALYSIS WITH THE
- Page 219 and 220: 15.6. SENSITIVITY ANALYSIS WITH THE
- Page 221 and 222: Appendix A API reference This chapt
- Page 223 and 224: 201 • Task.relaxprimal Obtain inf
- Page 225 and 226: A.1. EXCEPTIONS 203 • Task.putvar
- Page 227 and 228: A.2. CLASS TASK 205 Arguments which
- Page 229 and 230: A.2. CLASS TASK 207 See also • Ro
- Page 231 and 232: A.2. CLASS TASK 209 Description: Ap
- Page 233 and 234: A.2. CLASS TASK 211 Description: If
- Page 235 and 236: A.2. CLASS TASK 213 A.2.16 Task.com
- Page 237 and 238: A.2. CLASS TASK 215 subj : int[] In
- Page 239 and 240: A.2. CLASS TASK 217 firsti : int In
- Page 241 and 242: A.2. CLASS TASK 219 A.2.27 Task.get
- Page 243 and 244: A.2. CLASS TASK 221 valijkl : Descr
- Page 245 and 246: A.2. CLASS TASK 223 A.2.33 Task.get
- Page 247 and 248: A.2. CLASS TASK 225 idx : long Inde
- Page 249 and 250: A.2. CLASS TASK 227 A.2.41 Task.get
- Page 251 and 252: A.2. CLASS TASK 229 i : int Index o
- Page 253 and 254: A.2. CLASS TASK 231 A.2.49 Task.get
- Page 255 and 256: A.2. CLASS TASK 233 conetype : cone
- Page 257 and 258: A.2. CLASS TASK 235 Description: Ob
- Page 259 and 260: A.2. CLASS TASK 237 sub : int[] Ind
- Page 261 and 262: A.2. CLASS TASK 239 A.2.64 Task.get
15.4. SENSITIVITY ANALYSIS FOR LINEAR PROBLEMS 191<br />
Basis type<br />
Con. β 1 β 2 σ 1 σ 2<br />
1 −300.00 0.00 3.00 3.00<br />
2 −700.00 +∞ 0.00 0.00<br />
3 −500.00 0.00 3.00 3.00<br />
4 −0.00 500.00 4.00 4.00<br />
5 −0.00 300.00 5.00 5.00<br />
6 −0.00 700.00 5.00 5.00<br />
7 −500.00 700.00 2.00 2.00<br />
Var. β 1 β 2 σ 1 σ 2<br />
x 11 −∞ 300.00 0.00 0.00<br />
x 12 −∞ 100.00 0.00 0.00<br />
x 23 −∞ 0.00 0.00 0.00<br />
x 24 −∞ 500.00 0.00 0.00<br />
x 31 −∞ 500.00 0.00 0.00<br />
x 33 −∞ 500.00 0.00 0.00<br />
x 34 −0.000000 500.00 2.00 2.00<br />
Optimal partition type<br />
Con. β 1 β 2 σ 1 σ 2<br />
1 −300.00 500.00 3.00 1.00<br />
2 −700.00 +∞ −0.00 −0.00<br />
3 −500.00 500.00 3.00 1.00<br />
4 −500.00 500.00 2.00 4.00<br />
5 −100.00 300.00 3.00 5.00<br />
6 −500.00 700.00 3.00 5.00<br />
7 −500.00 700.00 2.00 2.00<br />
Var. β 1 β 2 σ 1 σ 2<br />
x 11 −∞ 300.00 0.00 0.00<br />
x 12 −∞ 100.00 0.00 0.00<br />
x 23 −∞ 500.00 0.00 2.00<br />
x 24 −∞ 500.00 0.00 0.00<br />
x 31 −∞ 500.00 0.00 0.00<br />
x 33 −∞ 500.00 0.00 0.00<br />
x 34 −∞ 500.00 0.00 2.00<br />
Table 15.1: Ranges and shadow prices related to bounds on constraints and variables. Left: Results<br />
for the basis type sensitivity analysis. Right: Results for the optimal partition type sensitivity analysis.<br />
x 11 + x 12 ≤ 400,<br />
x 23 + x 24 ≤ 1200,<br />
x 31 + x 33 + x 34 ≤ 1000,<br />
x 11 + x 31 = 800,<br />
x 12 = 100,<br />
x 23 + x 33 = 500,<br />
x 24 + x 34 = 500,<br />
x 11 , x 12 , x 23 , x 24 , x 31 , x 33 , x 34 ≥ 0.<br />
(15.3)<br />
<strong>The</strong> basis type and the optimal partition type sensitivity results for the transportation problem are<br />
shown in Table 15.1 and 15.2 respectively. Examining the results from the optimal partition type<br />
sensitivity analysis we see that for constraint number 1 we have σ 1 ≠ σ 2 and β 1 ≠ β 2 . <strong>The</strong>refore, we<br />
have a left linearity interval of [−300, 0] and a right interval of [0, 500]. <strong>The</strong> corresponding left and<br />
right shadow prices are 3 and 1 respectively. This implies that if the upper bound on constraint 1<br />
increases by<br />
β ∈ [0, β 1 ] = [0, 500]<br />
then the optimal objective value will decrease by the value<br />
σ 2 β = 1β.<br />
Correspondingly, if the upper bound on constraint 1 is decreased by