#include <Residuals.h>
Inheritance diagram for Residuals:
Public Methods | |
double | residualNorm () |
double | dualityGap () |
virtual void | calcresids (Data *problem, Variables *vars)=0 |
virtual void | add_r3_xz_alpha (Variables *vars, double alpha)=0 |
virtual void | set_r3_xz_alpha (Variables *vars, double alpha)=0 |
virtual void | clear_r3 ()=0 |
virtual void | clear_r1r2 () |
virtual void | project_r3 (double rmin, double rmax)=0 |
|
Modify the "complementarity" component of the residuals, by adding the pairwise products of the complementary variables plus a constant alpha to this term. Implemented in HuberResiduals, QpBoundResiduals, QpExampleResids, QpGenResiduals, and SvmResiduals. |
|
calculate residuals, their norms, and duality/complementarity gap, given a problem and variable set. Implemented in HuberResiduals, QpBoundResiduals, QpExampleResids, QpGenResiduals, and SvmResiduals. |
|
set the noncomplementarity components of the residual (the terms arising from the linear equalities in the KKT conditions) to 0. Reimplemented in HuberResiduals, QpBoundResiduals, QpExampleResids, QpGenResiduals, and SvmResiduals. |
|
set the complementarity component of the residuals to 0. Implemented in HuberResiduals, QpBoundResiduals, QpExampleResids, QpGenResiduals, and SvmResiduals. |
|
A quantity that measures progress toward feasibility. IN terms of the abstract problem formulation, this quantity is defined as x' * Q * x - b' * y + c' * x - d' * z |
|
perform the projection operation required by Gondzio algorithm: replace each component r3_i of the complementarity component of the residuals by r3p_i - r3_i, where r3p_i is the projection of r3_i onto the box [rmin, rmax]. Then if the resulting value is less than -rmax, replace it by -rmax.
Implemented in HuberResiduals, QpBoundResiduals, QpExampleResids, QpGenResiduals, and SvmResiduals. |
|
The norm of the residuals, ommiting the complementariy conditions |
|
Set the "complementarity" component of the residuals to the pairwise products of the complementary variables plus a constant alpha Implemented in HuberResiduals, QpBoundResiduals, QpExampleResids, QpGenResiduals, and SvmResiduals. |