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

304 APPENDIX A. API REFERENCE 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. first : int First column in the slice. last : int Last column plus one in the slice. 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. Description: See also Replaces all elements in a set of columns of A. • Task.putmaxnumanz The function changes the size of the preallocated storage for linear coefficients. A.2.177 Task.putaij() Task.putaij( i, j, aij) Changes a single value in the linear coefficient matrix. Arguments aij : double New coefficient for a i,j . i : int Index of the constraint in which the change should occur.

A.2. CLASS TASK 305 j : int Index of the variable in which the change should occur. Description: Changes a coefficient in A using the method See also a ij = aij. • 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.178 Task.putaijlist() Task.putaijlist( subi, subj, valij) Changes one or more coefficients in the linear constraint matrix. Arguments subi : int[] Constraint indexes in which the change should occur. subj : int[] Variable indexes in which the change should occur. valij : double[] New coefficient values for a i,j . Description: Changes one or more coefficients in A using the method See also a subi[k],subj[k] = valij[k], k = 0, . . . , num − 1. If the same a i,j entry appears multiple times only the last one will be used.

A.2. CLASS TASK 305<br />

j : int<br />

Index of the variable in which the change should occur.<br />

Description:<br />

Changes a coefficient in A using the method<br />

See also<br />

a ij = aij.<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.178<br />

Task.putaijlist()<br />

Task.putaijlist(<br />

subi,<br />

subj,<br />

valij)<br />

Changes one or more coefficients in the linear constraint matrix.<br />

Arguments<br />

subi : int[]<br />

Constraint indexes in which the change should occur.<br />

subj : int[]<br />

Variable indexes in which the change should occur.<br />

valij : double[]<br />

New coefficient values for a i,j .<br />

Description:<br />

Changes one or more coefficients in A using the method<br />

See also<br />

a subi[k],subj[k] = valij[k], k = 0, . . . , num − 1.<br />

If the same a i,j entry appears multiple times only the last one will be used.

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

Saved successfully!

Ooh no, something went wrong!