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

302 APPENDIX A. API REFERENCE A.2.173 Task.printparam() Task.printparam() Prints the current parameter settings. Description: Prints the current parameter settings to the message stream. A.2.174 Task.putacol() Task.putacol( j, subj, valj) Replaces all elements in one column of A. Arguments j : int Index of column in A. subj : int[] Row indexes of non-zero values in column j of A. valj : double[] New non-zero values of column j in A. Description: Replaces all entries in column j of A. Assuming that there are no duplicate subscripts in subj, assignment is performed as follows: See also All other entries in column j are set to zero. A subj[k],j = valj[k], k = 0, . . . , nzj − 1 • Task.putarow Replaces all elements in one row 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 303 A.2.175 Task.putacollist() Task.putacollist( sub, ptrb, ptre, asub, aval) Replaces all elements in several columns 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 columns 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 columns stored in asub and aval. For an explanation of the meaning of ptre see Section 5.13.3.2. sub : int[] Indexes of columns that should be replaced. sub should not contain duplicate values. Description: See also Replaces all elements in a set of columns of A. The elements are replaced as follows for i = 0, . . . , num − 1 a asub[k],sub[i] = aval[k], k = aptrb[i], . . . , aptre[i] − 1. • Task.putmaxnumanz The function changes the size of the preallocated storage for linear coefficients. A.2.176 Task.putacolslice() Task.putacolslice( first, last, ptrb, ptre, asub, aval)

A.2. CLASS TASK 303<br />

A.2.175<br />

Task.putacollist()<br />

Task.putacollist(<br />

sub,<br />

ptrb,<br />

ptre,<br />

asub,<br />

aval)<br />

Replaces all elements in several columns 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 columns 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 columns 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 columns that should be replaced. sub should not contain duplicate values.<br />

Description:<br />

See also<br />

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

for i = 0, . . . , num − 1<br />

a asub[k],sub[i] = 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.176<br />

Task.putacolslice()<br />

Task.putacolslice(<br />

first,<br />

last,<br />

ptrb,<br />

ptre,<br />

asub,<br />

aval)

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

Saved successfully!

Ooh no, something went wrong!