The MOSEK Python optimizer API manual Version 7.0 (Revision 141)
Optimizer API for Python - Documentation - Mosek Optimizer API for Python - Documentation - Mosek
320 APPENDIX A. API REFERENCE last : int Last element plus 1 of the slice in c to be changed. slice : double[] New numerical values for coefficients in c that should be modified. Description: Modifies a slice in the linear term c in the objective using the principle c j = slice[j − first], j = first, .., last − 1 A.2.201 Task.putdouparam() Task.putdouparam( param, parvalue) Sets a double parameter. Arguments param : dparam Which parameter. parvalue : double Parameter value. Description: Sets the value of a double parameter. A.2.202 Task.putintparam() Task.putintparam( param, parvalue) Sets an integer parameter. Arguments param : iparam Which parameter.
A.2. CLASS TASK 321 parvalue : int Parameter value. Description: Sets the value of an integer parameter. A.2.203 Task.putmaxnumanz() Task.putmaxnumanz(maxnumanz) The function changes the size of the preallocated storage for linear coefficients. Arguments maxnumanz : long New size of the storage reserved for storing A. Description: See also MOSEK stores only the non-zero elements in A. Therefore, MOSEK cannot predict how much storage is required to store A. Using this function it is possible to specify the number of non-zeros to preallocate for storing A. If the number of non-zeros in the problem is known, it is a good idea to set maxnumanz slightly larger than this number, otherwise a rough estimate can be used. In general, if A is inputted in many small chunks, setting this value may speed up the the data input phase. It is not mandatory to call this function, since MOSEK will reallocate internal structures whenever it is necessary. • iinfitem.sto num a realloc Number of times the storage for storing the linear coefficient matrix has been changed. A.2.204 Task.putmaxnumbarvar() Task.putmaxnumbarvar(maxnumbarvar) Sets the number of preallocated symmetric matrix variables in the optimization task. Arguments maxnumbarvar : int The maximum number of semidefinite variables.
- 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 and 316: A.2. CLASS TASK 293 A.2.162 Task.is
- Page 317 and 318: A.2. CLASS TASK 295 whichstream : s
- 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: A.2. CLASS TASK 319 Arguments j : i
- 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
- Page 367 and 368: A.2. CLASS TASK 345 A.2.243 Task.pu
- Page 369 and 370: A.2. CLASS TASK 347 Description: Se
- Page 371 and 372: A.2. CLASS TASK 349 Sets a slice of
- Page 373 and 374: A.2. CLASS TASK 351 A.2.254 Task.re
- Page 375 and 376: A.2. CLASS TASK 353 wux : double[]
- Page 377 and 378: A.2. CLASS TASK 355 See also • Ta
- Page 379 and 380: A.2. CLASS TASK 357 isdef : int Is
- Page 381 and 382: A.2. CLASS TASK 359 A.2.269 Task.st
- Page 383 and 384: A.2. CLASS TASK 361 Description: Wr
- Page 385 and 386: A.3. CLASS ENV 363 A.2.278 Task.wri
- Page 387 and 388: A.3. CLASS ENV 365 Arguments code :
- Page 389 and 390: A.3. CLASS ENV 367 Arguments keepdl
- Page 391 and 392: A.4. CALLBACK FUNCTIONS AND RELATED
A.2. CLASS TASK 321<br />
parvalue : int<br />
Parameter value.<br />
Description:<br />
Sets the value of an integer parameter.<br />
A.2.203<br />
Task.putmaxnumanz()<br />
Task.putmaxnumanz(maxnumanz)<br />
<strong>The</strong> function changes the size of the preallocated storage for linear coefficients.<br />
Arguments<br />
maxnumanz : long<br />
New size of the storage reserved for storing A.<br />
Description:<br />
See also<br />
<strong>MOSEK</strong> stores only the non-zero elements in A. <strong>The</strong>refore, <strong>MOSEK</strong> cannot predict how much<br />
storage is required to store A. Using this function it is possible to specify the number of non-zeros<br />
to preallocate for storing A.<br />
If the number of non-zeros in the problem is known, it is a good idea to set maxnumanz slightly<br />
larger than this number, otherwise a rough estimate can be used. In general, if A is inputted in<br />
many small chunks, setting this value may speed up the the data input phase.<br />
It is not mandatory to call this function, since <strong>MOSEK</strong> will reallocate internal structures whenever<br />
it is necessary.<br />
• iinfitem.sto num a realloc Number of times the storage for storing the linear coefficient<br />
matrix has been changed.<br />
A.2.204<br />
Task.putmaxnumbarvar()<br />
Task.putmaxnumbarvar(maxnumbarvar)<br />
Sets the number of preallocated symmetric matrix variables in the optimization task.<br />
Arguments<br />
maxnumbarvar : int<br />
<strong>The</strong> maximum number of semidefinite variables.