25.11.2015 Views

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

Optimizer API for Python - Documentation - Mosek

Optimizer API for Python - Documentation - Mosek

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

A.2. CLASS TASK 323<br />

A.2.207<br />

Task.putmaxnumqnz()<br />

Task.putmaxnumqnz(maxnumqnz)<br />

Changes the size of the preallocated storage for quadratic terms.<br />

Arguments<br />

maxnumqnz :<br />

Description:<br />

long<br />

Number of non-zero elements preallocated in quadratic coefficient matrixes.<br />

<strong>MOSEK</strong> stores only the non-zero elements in Q. <strong>The</strong>refore, <strong>MOSEK</strong> cannot predict how much<br />

storage is required to store Q. Using this function it is possible to specify the number non-zeros<br />

to preallocate for storing Q (both objective and constraints).<br />

It may be advantageous to reserve more non-zeros for Q than actually needed since it may<br />

improve the internal efficiency of <strong>MOSEK</strong>, however, it is never worthwhile to specify more than<br />

the double of the anticipated number of non-zeros in Q.<br />

It is never mandatory to call this function, since its only function is to give a hint of the amount<br />

of data to preallocate for efficiency reasons.<br />

A.2.208<br />

Task.putmaxnumvar()<br />

Task.putmaxnumvar(maxnumvar)<br />

Sets the number of preallocated variables in the optimization task.<br />

Arguments<br />

maxnumvar :<br />

Description:<br />

int<br />

Number of preallocated variables in the optimization task.<br />

Sets the number of preallocated variables in the optimization task. When this number of variables<br />

is reached <strong>MOSEK</strong> will automatically allocate more space for variables.<br />

It is never mandatory to call this function, since its only function is to give a hint of the amount<br />

of data to preallocate for efficiency reasons.<br />

Please note that maxnumvar must be larger than the current number of variables in the task.

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

Saved successfully!

Ooh no, something went wrong!