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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

300 APPENDIX A. <strong>API</strong> REFERENCE<br />

then<br />

• marki = [mark.up]<br />

leftpricei[0], rightpricei[0], leftrangei[0] and rightrangei[0] will contain the sensitivity<br />

information for the upper bound on constraint 0 given by the expression:<br />

See also<br />

x 1 − x 2 ≤ 1<br />

Similarly, the variables for which to perform sensitivity analysis are given by the structures:<br />

• subj Index of variables to analyze.<br />

• markj Indicate for which bound of variable subi[j] sensitivity analysis is performed. If<br />

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

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

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

For an example, please see Section 15.5.<br />

<strong>The</strong> type of sensitivity analysis to be performed (basis or optimal partition) is controlled by the<br />

parameter iparam.sensitivity type.<br />

• Task.dualsensitivity Performs sensitivity analysis on objective coefficients.<br />

• Task.sensitivityreport Creates a sensitivity report.<br />

• iparam.sensitivity type Controls which type of sensitivity analysis is to be performed.<br />

• iparam.log sensitivity Control logging in sensitivity analyzer.<br />

• iparam.log sensitivity opt Control logging in sensitivity analyzer.<br />

A.2.172<br />

Task.printdata()<br />

Task.printdata(<br />

whichstream,<br />

firsti,<br />

lasti,<br />

firstj,<br />

lastj,<br />

firstk,<br />

lastk,<br />

c,<br />

qo,<br />

a,<br />

qc,<br />

bc,<br />

bx,<br />

vartype,<br />

cones)

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

Saved successfully!

Ooh no, something went wrong!