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 307<br />

A.2.180<br />

Task.putarowlist()<br />

Task.putarowlist(<br />

sub,<br />

ptrb,<br />

ptre,<br />

asub,<br />

aval)<br />

Replaces all elements in several rows the linear constraint matrix by new values.<br />

Arguments<br />

asub : int[]<br />

asub contains the new variable indexes.<br />

aval : double[]<br />

Coefficient coefficient values.<br />

ptrb : long[]<br />

Array of pointers to the first element in the rows stored in asub and aval.<br />

For an explanation of the meaning of ptrb see Section 5.13.3.2.<br />

ptre : long[]<br />

Array of pointers to the last element plus one in the rows stored in asub and aval.<br />

For an explanation of the meaning of ptre see Section 5.13.3.2.<br />

sub : int[]<br />

Indexes of rows or columns that should be replaced. sub should not contain duplicate values.<br />

Description:<br />

See also<br />

Replaces all elements in a set of rows of A. <strong>The</strong> elements are replaced as follows<br />

for i = first, . . . , last − 1<br />

a sub[i],asub[k] = aval[k], k = aptrb[i], . . . , aptre[i] − 1.<br />

• Task.putmaxnumanz <strong>The</strong> function changes the size of the preallocated storage for linear<br />

coefficients.<br />

A.2.181<br />

Task.putbarablocktriplet()<br />

Task.putbarablocktriplet(<br />

num,<br />

subi,<br />

subj,<br />

subk,<br />

subl,<br />

valijkl)

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

Saved successfully!

Ooh no, something went wrong!