The MOSEK Python optimizer API manual Version 7.0 (Revision 141)
Optimizer API for Python - Documentation - Mosek Optimizer API for Python - Documentation - Mosek
204 APPENDIX A. API REFERENCE A.2 Class Task A.2.1 Task.analyzenames() Task.analyzenames( whichstream, nametype) Analyze the names and issue an error for the first invalid name. Arguments nametype : nametype The type of names e.g. valid in MPS or LP files. whichstream : streamtype Index of the stream. Description: The function analyzes the names and issue an error if a name is invalid. A.2.2 Task.analyzeproblem() Task.analyzeproblem(whichstream) Analyze the data of a task. Arguments whichstream : streamtype Index of the stream. Description: The function analyzes the data of task and writes out a report. A.2.3 Task.analyzesolution() Task.analyzesolution( whichstream, whichsol) Print information related to the quality of the solution.
A.2. CLASS TASK 205 Arguments whichsol : soltype Selects a solution. whichstream : streamtype Index of the stream. Description: See also Print information related to the quality of the solution and other solution statistics. By default this function prints information about the largest infeasibilites in the solution, the primal (and possibly dual) objective value and the solution status. Following parameters can be used to configure the printed statistics: • iparam.ana sol basis. Enables or disables printing of statistics specific to the basis solution (condition number, number of basic variables etc.). Default is on. • iparam.ana sol print violated. Enables or disables listing names of all constraints (both primal and dual) which are violated by the solution. Default is off. • dparam.ana sol infeas tol. The tolerance defining when a constraint is considered violated. If a constraint is violated more than this, it will be listed in the summary. • Task.getpviolcon Computes the violation of a primal solution for a list of xc variables. • Task.getpviolvar Computes the violation of a primal solution for a list of x variables. • Task.getpviolbarvar Computes the violation of a primal solution for a list of barx variables. • Task.getpviolcones Computes the violation of a solution for set of conic constraints. • Task.getdviolcon Computes the violation of a dual solution associated with a set of constraints. • Task.getdviolvar Computes the violation of a dual solution associated with a set of x variables. • Task.getdviolbarvar Computes the violation of dual solution for a set of barx variables. • Task.getdviolcones Computes the violation of a solution for set of dual conic constraints. • iparam.ana sol basis Controls whether the basis matrix is analyzed in solaution analyzer. A.2.4 Task.appendbarvars() Task.appendbarvars(dim) Appends a semidefinite variable of dimension dim to the problem.
- 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 and 212: 15.4. SENSITIVITY ANALYSIS FOR LINE
- Page 213 and 214: 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: A.1. EXCEPTIONS 203 • Task.putvar
- 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
- Page 263 and 264: A.2. CLASS TASK 241 Computes the vi
- Page 265 and 266: A.2. CLASS TASK 243 A.2.71 Task.get
- Page 267 and 268: A.2. CLASS TASK 245 A.2.75 Task.get
- Page 269 and 270: A.2. CLASS TASK 247 A.2.80 Task.get
- Page 271 and 272: A.2. CLASS TASK 249 A.2.86 Task.get
- Page 273 and 274: A.2. CLASS TASK 251 A.2.92 Task.get
- Page 275 and 276: A.2. CLASS TASK 253 k : int Index o
A.2. CLASS TASK 205<br />
Arguments<br />
whichsol : soltype<br />
Selects a solution.<br />
whichstream : streamtype<br />
Index of the stream.<br />
Description:<br />
See also<br />
Print information related to the quality of the solution and other solution statistics.<br />
By default this function prints information about the largest infeasibilites in the solution, the<br />
primal (and possibly dual) objective value and the solution status.<br />
Following parameters can be used to configure the printed statistics:<br />
• iparam.ana sol basis. Enables or disables printing of statistics specific to the basis solution<br />
(condition number, number of basic variables etc.). Default is on.<br />
• iparam.ana sol print violated. Enables or disables listing names of all constraints (both<br />
primal and dual) which are violated by the solution. Default is off.<br />
• dparam.ana sol infeas tol. <strong>The</strong> tolerance defining when a constraint is considered violated.<br />
If a constraint is violated more than this, it will be listed in the summary.<br />
• Task.getpviolcon Computes the violation of a primal solution for a list of xc variables.<br />
• Task.getpviolvar Computes the violation of a primal solution for a list of x variables.<br />
• Task.getpviolbarvar Computes the violation of a primal solution for a list of barx variables.<br />
• Task.getpviolcones Computes the violation of a solution for set of conic constraints.<br />
• Task.getdviolcon Computes the violation of a dual solution associated with a set of constraints.<br />
• Task.getdviolvar Computes the violation of a dual solution associated with a set of x<br />
variables.<br />
• Task.getdviolbarvar Computes the violation of dual solution for a set of barx variables.<br />
• Task.getdviolcones Computes the violation of a solution for set of dual conic constraints.<br />
• iparam.ana sol basis Controls whether the basis matrix is analyzed in solaution analyzer.<br />
A.2.4<br />
Task.appendbarvars()<br />
Task.appendbarvars(dim)<br />
Appends a semidefinite variable of dimension dim to the problem.