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.

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

Changes one element in barc.<br />

Arguments<br />

j : int<br />

Index of the element in ¯c that should be changed.<br />

sub : long[]<br />

sub is list of indexes of those symmetric matrixes appearing in sum.<br />

weights : double[]<br />

<strong>The</strong> weights of the terms in the weighted sum that forms c j .<br />

Description:<br />

This function puts one element associated with ¯X j in the ¯c vector.<br />

Each element in the ¯c vector is a weighted sum of symmetric matrixes, i.e. ¯c j is a symmetric<br />

matrix with dimensions as ¯X j . By default all elements in ¯c are 0, so only non-zero elements need<br />

be added.<br />

Setting the same elements again will overwrite the earlier entry.<br />

<strong>The</strong> symmetric matrixes themselves are defined separately using the funtion Task.appendsparsesymmat.<br />

A.2.185<br />

Task.putbarsj()<br />

Task.putbarsj(<br />

whichsol,<br />

j,<br />

barsj)<br />

Sets the dual solution for a semidefinite variable.<br />

Arguments<br />

barsj : double[]<br />

Value of ¯s j .<br />

j : int<br />

Index of the semidefinite variable.<br />

whichsol : soltype<br />

Selects a solution.<br />

Description:<br />

Sets the dual solution for a semidefinite variable.

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

Saved successfully!

Ooh no, something went wrong!