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

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.

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.

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

Saved successfully!

Ooh no, something went wrong!