The MOSEK Python optimizer API manual Version 7.0 (Revision 141)

Optimizer API for Python - Documentation - Mosek Optimizer API for Python - Documentation - Mosek

25.11.2015 Views

300 APPENDIX A. API REFERENCE then • marki = [mark.up] leftpricei[0], rightpricei[0], leftrangei[0] and rightrangei[0] will contain the sensitivity information for the upper bound on constraint 0 given by the expression: See also x 1 − x 2 ≤ 1 Similarly, the variables for which to perform sensitivity analysis are given by the structures: • subj Index of variables to analyze. • markj Indicate for which bound of variable subi[j] sensitivity analysis is performed. If markj[j] = mark.up the upper bound of constraint subi[j] is analyzed, and if markj[j] = mark.lo the lower bound is analyzed. If subi[j] is an equality constraint, either mark.lo or mark.up can be used to select the constraint for sensitivity analysis. For an example, please see Section 15.5. The type of sensitivity analysis to be performed (basis or optimal partition) is controlled by the parameter iparam.sensitivity type. • Task.dualsensitivity Performs sensitivity analysis on objective coefficients. • Task.sensitivityreport Creates a sensitivity report. • iparam.sensitivity type Controls which type of sensitivity analysis is to be performed. • iparam.log sensitivity Control logging in sensitivity analyzer. • iparam.log sensitivity opt Control logging in sensitivity analyzer. A.2.172 Task.printdata() Task.printdata( whichstream, firsti, lasti, firstj, lastj, firstk, lastk, c, qo, a, qc, bc, bx, vartype, cones)

A.2. CLASS TASK 301 Prints a part of the problem data to a stream. Arguments a : int If non-zero A is printed. bc : int If non-zero the constraints bounds are printed. bx : int If non-zero the variable bounds are printed. c : int If non-zero c is printed. cones : int If non-zero the conic data is printed. firsti : int Index of first constraint for which data should be printed. firstj : int Index of first variable for which data should be printed. firstk : int Index of first cone for which data should be printed. lasti : int Index of last constraint plus 1 for which data should be printed. lastj : int Index of last variable plus 1 for which data should be printed. lastk : int Index of last cone plus 1 for which data should be printed. qc : int If non-zero Q k is printed for the relevant constraints. qo : int If non-zero Q o is printed. vartype : int If non-zero the variable types are printed. whichstream : streamtype Index of the stream. Description: Prints a part of the problem data to a stream. This function is normally used for debugging purposes only, e.g. to verify that the correct data has been inputted.

A.2. CLASS TASK 301<br />

Prints a part of the problem data to a stream.<br />

Arguments<br />

a : int<br />

If non-zero A is printed.<br />

bc : int<br />

If non-zero the constraints bounds are printed.<br />

bx : int<br />

If non-zero the variable bounds are printed.<br />

c : int<br />

If non-zero c is printed.<br />

cones : int<br />

If non-zero the conic data is printed.<br />

firsti : int<br />

Index of first constraint for which data should be printed.<br />

firstj : int<br />

Index of first variable for which data should be printed.<br />

firstk : int<br />

Index of first cone for which data should be printed.<br />

lasti : int<br />

Index of last constraint plus 1 for which data should be printed.<br />

lastj : int<br />

Index of last variable plus 1 for which data should be printed.<br />

lastk : int<br />

Index of last cone plus 1 for which data should be printed.<br />

qc : int<br />

If non-zero Q k is printed for the relevant constraints.<br />

qo : int<br />

If non-zero Q o is printed.<br />

vartype : int<br />

If non-zero the variable types are printed.<br />

whichstream : streamtype<br />

Index of the stream.<br />

Description:<br />

Prints a part of the problem data to a stream. This function is normally used for debugging<br />

purposes only, e.g. to verify that the correct data has been inputted.

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

Saved successfully!

Ooh no, something went wrong!