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

Description:<br />

Obtains a slice of the y vector for a solution.<br />

See also<br />

• Task.gety Obtains the y vector for a solution.<br />

A.2.160<br />

Task.initbasissolve()<br />

Task.initbasissolve(basis)<br />

Prepare a task for basis solver.<br />

Arguments<br />

basis : int[]<br />

<strong>The</strong> array of basis indexes to use.<br />

<strong>The</strong> array is interpreted as follows: If basis[i] ≤ numcon − 1, then x c basis[i]<br />

is in the basis<br />

at position i, otherwise x basis[i]−numcon is in the basis at position i.<br />

Description:<br />

Prepare a task for use with the Task.solvewithbasis function.<br />

This function should be called<br />

• immediately before the first call to Task.solvewithbasis, and<br />

• immediately before any subsequent call to Task.solvewithbasis if the task has been modified.<br />

If the basis is singular i.e. not invertible, then<br />

the exception rescode.err basis singular is generated.<br />

A.2.161<br />

Task.inputdata()<br />

Task.inputdata(<br />

maxnumcon,<br />

maxnumvar,<br />

c,<br />

cfix,<br />

aptrb,<br />

aptre,<br />

asub,<br />

aval,<br />

bkc,<br />

blc,<br />

buc,<br />

bkx,<br />

blx,<br />

bux)

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

Saved successfully!

Ooh no, something went wrong!