The MOSEK Python optimizer API manual Version 7.0 (Revision 141)
Optimizer API for Python - Documentation - Mosek Optimizer API for Python - Documentation - Mosek
294 APPENDIX A. API REFERENCE param : sparam Which parameter. parname : str Parameter name. Description: Checks whether parname is a valid string parameter name. A.2.165 Task.linkfiletostream() Task.linkfiletostream( whichstream, filename, append) Directs all output from a task stream to a file. Arguments append : int If this argument is 0 the output file will be overwritten, otherwise text is append to the output file. filename : str The name of the file where text from the stream defined by whichstream is written. whichstream : streamtype Index of the stream. Description: Directs all output from a task stream to a file. A.2.166 Task.onesolutionsummary() Task.onesolutionsummary( whichstream, whichsol) Prints a short summary for the specified solution. Arguments whichsol : soltype Selects a solution.
A.2. CLASS TASK 295 whichstream : streamtype Index of the stream. Description: Prints a short summary for a specified solution. A.2.167 Task.optimize() trmcode = Task.optimize() Optimizes the problem. Arguments trmcode : rescode Is either rescode.ok or a termination response code. Description: See also Calls the optimizer. Depending on the problem type and the selected optimizer this will call one of the optimizers in MOSEK. By default the interior point optimizer will be selected for continuous problems. The optimizer may be selected manually by setting the parameter iparam.optimizer. • Task.optimizeconcurrent Optimize a given task with several optimizers concurrently. • Task.getsolution Obtains the complete solution. • Task.getsolutioni Obtains the solution for a single constraint or variable. • Task.getsolutioninfo Obtains information about of a solution. • iparam.optimizer Controls which optimizer is used to optimize the task. A.2.168 Task.optimizeconcurrent() Task.optimizeconcurrent(taskarray) Optimize a given task with several optimizers concurrently. Arguments taskarray : mosek.Task[] An array of num tasks.
- 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
- Page 277 and 278: A.2. CLASS TASK 255 A.2.103 Task.ge
- Page 279 and 280: A.2. CLASS TASK 257 normalize : int
- Page 281 and 282: A.2. CLASS TASK 259 Description: Le
- Page 283 and 284: A.2. CLASS TASK 261 max(l x j τ
- Page 285 and 286: A.2. CLASS TASK 263 A.2.117 Task.ge
- Page 287 and 288: A.2. CLASS TASK 265 last : int Last
- Page 289 and 290: A.2. CLASS TASK 267 A.2.124 Task.ge
- Page 291 and 292: A.2. CLASS TASK 269 Arguments snx :
- Page 293 and 294: A.2. CLASS TASK 271 slc : double[]
- Page 295 and 296: A.2. CLASS TASK 273 Arguments accmo
- Page 297 and 298: A.2. CLASS TASK 275 A.2.133 Task.ge
- Page 299 and 300: A.2. CLASS TASK 277 last : int Valu
- Page 301 and 302: A.2. CLASS TASK 279 subi : int[] Ro
- Page 303 and 304: A.2. CLASS TASK 281 Description: Ob
- Page 305 and 306: A.2. CLASS TASK 283 Arguments taskn
- Page 307 and 308: A.2. CLASS TASK 285 A.2.148 Task.ge
- Page 309 and 310: A.2. CLASS TASK 287 vartype : varia
- Page 311 and 312: A.2. CLASS TASK 289 whichsol : solt
- Page 313 and 314: A.2. CLASS TASK 291 Description: Ob
- Page 315: A.2. CLASS TASK 293 A.2.162 Task.is
- Page 319 and 320: A.2. CLASS TASK 297 A.2.170 Task.pr
- Page 321 and 322: A.2. CLASS TASK 299 markj : mark Th
- Page 323 and 324: A.2. CLASS TASK 301 Prints a part o
- Page 325 and 326: A.2. CLASS TASK 303 A.2.175 Task.pu
- Page 327 and 328: A.2. CLASS TASK 305 j : int Index o
- Page 329 and 330: A.2. CLASS TASK 307 A.2.180 Task.pu
- Page 331 and 332: A.2. CLASS TASK 309 Description: Th
- Page 333 and 334: A.2. CLASS TASK 311 A.2.186 Task.pu
- Page 335 and 336: A.2. CLASS TASK 313 Changes the bou
- Page 337 and 338: A.2. CLASS TASK 315 Modifies one li
- Page 339 and 340: A.2. CLASS TASK 317 bkc : boundkey
- Page 341 and 342: A.2. CLASS TASK 319 Arguments j : i
- Page 343 and 344: A.2. CLASS TASK 321 parvalue : int
- Page 345 and 346: A.2. CLASS TASK 323 A.2.207 Task.pu
- Page 347 and 348: A.2. CLASS TASK 325 Sets a string p
- Page 349 and 350: A.2. CLASS TASK 327 Description: Re
- Page 351 and 352: A.2. CLASS TASK 329 qosubj : int[]
- Page 353 and 354: A.2. CLASS TASK 331 Sets the status
- Page 355 and 356: A.2. CLASS TASK 333 A.2.224 Task.pu
- Page 357 and 358: A.2. CLASS TASK 335 Arguments sux :
- Page 359 and 360: A.2. CLASS TASK 337 y : double[] Ve
- Page 361 and 362: A.2. CLASS TASK 339 A.2.233 Task.pu
- Page 363 and 364: A.2. CLASS TASK 341 last : int Last
- Page 365 and 366: A.2. CLASS TASK 343 See also • Ta
A.2. CLASS TASK 295<br />
whichstream : streamtype<br />
Index of the stream.<br />
Description:<br />
Prints a short summary for a specified solution.<br />
A.2.167<br />
Task.optimize()<br />
trmcode = Task.optimize()<br />
Optimizes the problem.<br />
Arguments<br />
trmcode : rescode<br />
Is either rescode.ok or a termination response code.<br />
Description:<br />
See also<br />
Calls the <strong>optimizer</strong>. Depending on the problem type and the selected <strong>optimizer</strong> this will call one of<br />
the <strong>optimizer</strong>s in <strong>MOSEK</strong>. By default the interior point <strong>optimizer</strong> will be selected for continuous<br />
problems. <strong>The</strong> <strong>optimizer</strong> may be selected <strong>manual</strong>ly by setting the parameter iparam.<strong>optimizer</strong>.<br />
• Task.optimizeconcurrent Optimize a given task with several <strong>optimizer</strong>s concurrently.<br />
• Task.getsolution Obtains the complete solution.<br />
• Task.getsolutioni Obtains the solution for a single constraint or variable.<br />
• Task.getsolutioninfo Obtains information about of a solution.<br />
• iparam.<strong>optimizer</strong> Controls which <strong>optimizer</strong> is used to optimize the task.<br />
A.2.168<br />
Task.optimizeconcurrent()<br />
Task.optimizeconcurrent(taskarray)<br />
Optimize a given task with several <strong>optimizer</strong>s concurrently.<br />
Arguments<br />
taskarray : mosek.Task[]<br />
An array of num tasks.