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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A.2. CLASS TASK 297<br />

A.2.170<br />

Task.primalrepair()<br />

Task.primalrepair(<br />

wlc,<br />

wuc,<br />

wlx,<br />

wux)<br />

<strong>The</strong> function repairs a primal infeasible optimization problem by adjusting the bounds on the<br />

constraints and variables.<br />

Arguments<br />

wlc : double[]<br />

(wl c) i is the weight associated with relaxing the lower bound on constraint i. If the weigth<br />

is negative, then the lower bound is not relaxed. Moreover, if the argument is None, then<br />

all the weights are assumed to be 1.<br />

wlx : double[]<br />

(wl x) j is the weight associated with relaxing the upper bound on constraint j. If the weigth<br />

is negative, then the lower bound is not relaxed. Moreover, if the argument is None, then<br />

all the weights are assumed to be 1.<br />

wuc : double[]<br />

(wu) c i is the weight associated with relaxing the upper bound on constraint i. If the weigth<br />

is negative, then the upper bound is not relaxed. Moreover, if the argument is None, then<br />

all the weights are assumed to be 1.<br />

wux : double[]<br />

(wl x) i is the weight associated with relaxing the upper bound on variable j. If the weigth is<br />

negative, then the upper bound is not relaxed. Moreover, if the argument is None, then all<br />

the weights are assumed to be 1.<br />

Description:<br />

<strong>The</strong> function repairs a primal infeasible optimization problem by adjusting the bounds on the<br />

constraints and variables where the adjustment is computed as the minimal weigthed sum relaxation<br />

to the bounds on the constraints and variables.<br />

<strong>The</strong> function is applicable to linear and conic problems possibly having integer constrained<br />

variables.<br />

Observe that when computing the minimal weighted relaxation then the termination tolerance<br />

specified by the parameters of the task is employed. For instance the parameter iparam.mio mode<br />

can be used make <strong>MOSEK</strong> ignore the integer constraints during the repair leading to a possibly<br />

a much faster repair. However, the drawback is of course that the repaired problem may not<br />

have integer feasible solution.<br />

Note the function modifies the bounds on the constraints and variables. If this is not a desired<br />

feature, then apply the fucntion to a cloned task.

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

Saved successfully!

Ooh no, something went wrong!