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

306 APPENDIX A. API REFERENCE • Task.putarow Replaces all elements in one row of A. • Task.putacol Replaces all elements in one column of A. • Task.putaij Changes a single value in the linear coefficient matrix. • Task.putmaxnumanz The function changes the size of the preallocated storage for linear coefficients. A.2.179 Task.putarow() Task.putarow( i, subi, vali) Replaces all elements in one row of A. Arguments i : subi : vali : Description: int Index of row in A. int[] Row indexes of non-zero values in row i of A. double[] New non-zero values of row i in A. Replaces all entries in row i of A. Assuming that there are no duplicate subscripts in subi, assignment is performed as follows: See also All other entries in row i are set to zero. A i,subi[k] = vali[k], k = 0, . . . , nzi − 1 • Task.putacol Replaces all elements in one column of A. • Task.putaij Changes a single value in the linear coefficient matrix. • Task.putmaxnumanz The function changes the size of the preallocated storage for linear coefficients.

A.2. CLASS TASK 307 A.2.180 Task.putarowlist() Task.putarowlist( sub, ptrb, ptre, asub, aval) Replaces all elements in several rows the linear constraint matrix by new values. Arguments asub : int[] asub contains the new variable indexes. aval : double[] Coefficient coefficient values. ptrb : long[] Array of pointers to the first element in the rows stored in asub and aval. For an explanation of the meaning of ptrb see Section 5.13.3.2. ptre : long[] Array of pointers to the last element plus one in the rows stored in asub and aval. For an explanation of the meaning of ptre see Section 5.13.3.2. sub : int[] Indexes of rows or columns that should be replaced. sub should not contain duplicate values. Description: See also Replaces all elements in a set of rows of A. The elements are replaced as follows for i = first, . . . , last − 1 a sub[i],asub[k] = aval[k], k = aptrb[i], . . . , aptre[i] − 1. • Task.putmaxnumanz The function changes the size of the preallocated storage for linear coefficients. A.2.181 Task.putbarablocktriplet() Task.putbarablocktriplet( num, subi, subj, subk, subl, valijkl)

306 APPENDIX A. <strong>API</strong> REFERENCE<br />

• Task.putarow Replaces all elements in one row of A.<br />

• Task.putacol Replaces all elements in one column of A.<br />

• Task.putaij Changes a single value in the linear coefficient matrix.<br />

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

coefficients.<br />

A.2.179<br />

Task.putarow()<br />

Task.putarow(<br />

i,<br />

subi,<br />

vali)<br />

Replaces all elements in one row of A.<br />

Arguments<br />

i :<br />

subi :<br />

vali :<br />

Description:<br />

int<br />

Index of row in A.<br />

int[]<br />

Row indexes of non-zero values in row i of A.<br />

double[]<br />

New non-zero values of row i in A.<br />

Replaces all entries in row i of A. Assuming that there are no duplicate subscripts in subi,<br />

assignment is performed as follows:<br />

See also<br />

All other entries in row i are set to zero.<br />

A i,subi[k] = vali[k], k = 0, . . . , nzi − 1<br />

• Task.putacol Replaces all elements in one column of A.<br />

• Task.putaij Changes a single value in the linear coefficient matrix.<br />

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

coefficients.

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

Saved successfully!

Ooh no, something went wrong!