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

Modifies one linear coefficient in the objective.<br />

Arguments<br />

cj : double<br />

New value of c j .<br />

j : int<br />

Index of the variable for which c should be changed.<br />

Description:<br />

Modifies one coefficient in the linear objective vector c, i.e.<br />

c j = cj.<br />

See also<br />

• Task.putclist Modifies a part of the linear objective coefficients.<br />

• Task.putcslice Modifies a slice of the linear objective coefficients.<br />

A.2.193<br />

Task.putclist()<br />

Task.putclist(<br />

subj,<br />

val)<br />

Modifies a part of the linear objective coefficients.<br />

Arguments<br />

subj : int[]<br />

Index of variables for which c should be changed.<br />

val : double[]<br />

New numerical values for coefficients in c that should be modified.<br />

Description:<br />

Modifies elements in the linear term c in the objective using the principle<br />

c subj[t] = val[t], t = 0, . . . , num − 1.<br />

If a variable index is specified multiple times in subj only the last entry is used.

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

Saved successfully!

Ooh no, something went wrong!