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

352 APPENDIX A. API REFERENCE A.2.257 Task.readtask() Task.readtask(filename) Load task data from a file. Arguments filename : str Input file name. Description: Load task data from a file, replacing any data that already is in the task object. All problem data are resotred, but if the file contains solutions, the solution status after loading a file is still unknown, even if it was optimal or otherwise well-defined when the file was dumped. See section F.4 for a description of the Task format. A.2.258 Task.relaxprimal() relaxedtask = Task.relaxprimal( wlc, wuc, wlx, wux) Deprecated. Arguments relaxedtask : Task The returned task. wlc : double[] Weights associated with lower bounds on the activity of constraints. If negative, the bound is strictly enforced, i.e. if (wl c) i < 0, then (vl c) i is fixed to zero. On return wlc[i] contains the relaxed bound. wlx : double[] Weights associated with lower bounds on the activity of variables. If negative, the bound is strictly enforced, i.e. if (wl x) j < 0 then (vl x) j is fixed to zero. On return wlx[i] contains the relaxed bound. wuc : double[] Weights associated with upper bounds on the activity of constraints. If negative, the bound is strictly enforced, i.e. if (wu) c i < 0, then (vu) c i is fixed to zero. On return wuc[i] contains the relaxed bound.

A.2. CLASS TASK 353 wux : double[] Weights associated with upper bounds on the activity of variables. If negative, the bound is strictly enforced, i.e. if (wu) x j < 0 then (vu) x j is fixed to zero. On return wux[i] contains the relaxed bound. Description: See also Deprecated. Please use Task.primalrepair instead. • dparam.feasrepair tol Tolerance for constraint enforcing upper bound on sum of weighted violations in feasibility repair. • iparam.feasrepair optimize Controls which type of feasibility analysis is to be performed. • sparam.feasrepair name separator Feasibility repair name separator. • sparam.feasrepair name prefix Feasibility repair name prefix. A.2.259 Task.removebarvars() Task.removebarvars(subset) The function removes a number of symmetric matrix. Arguments subset : int[] Indexes of symmetric matrix which should be removed. Description: See also The function removes a subset of the symmetric matrix from the optimization task. This implies that the existing symmetric matrix are renumbered, for instance if constraint 5 is removed then constraint 6 becomes constraint 5 and so forth. • Task.appendbarvars Appends a semidefinite variable of dimension dim to the problem. A.2.260 Task.removecones() Task.removecones(subset) Removes a conic constraint from the problem.

A.2. CLASS TASK 353<br />

wux : double[]<br />

Weights associated with upper bounds on the activity of variables. If negative, the bound<br />

is strictly enforced, i.e. if (wu) x j < 0 then (vu) x j is fixed to zero. On return wux[i] contains<br />

the relaxed bound.<br />

Description:<br />

See also<br />

Deprecated. Please use Task.primalrepair instead.<br />

• dparam.feasrepair tol Tolerance for constraint enforcing upper bound on sum of weighted<br />

violations in feasibility repair.<br />

• iparam.feasrepair optimize Controls which type of feasibility analysis is to be performed.<br />

• sparam.feasrepair name separator Feasibility repair name separator.<br />

• sparam.feasrepair name prefix Feasibility repair name prefix.<br />

A.2.259<br />

Task.removebarvars()<br />

Task.removebarvars(subset)<br />

<strong>The</strong> function removes a number of symmetric matrix.<br />

Arguments<br />

subset : int[]<br />

Indexes of symmetric matrix which should be removed.<br />

Description:<br />

See also<br />

<strong>The</strong> function removes a subset of the symmetric matrix from the optimization task. This implies<br />

that the existing symmetric matrix are renumbered, for instance if constraint 5 is removed then<br />

constraint 6 becomes constraint 5 and so forth.<br />

• Task.appendbarvars Appends a semidefinite variable of dimension dim to the problem.<br />

A.2.260<br />

Task.removecones()<br />

Task.removecones(subset)<br />

Removes a conic constraint from the problem.

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

Saved successfully!

Ooh no, something went wrong!