#include <SvmResiduals.h>
Inheritance diagram for SvmResiduals:

Public Methods | |
| SvmResiduals (int hyperplanedim_in, int nobservations_in) | |
| virtual void | calcresids (Data *prob, Variables *vars) |
| virtual void | add_r3_xz_alpha (Variables *vars, double alpha) |
| virtual void | set_r3_xz_alpha (Variables *vars, double alpha) |
| virtual void | clear_r1r2 () |
| virtual void | clear_r3 () |
| virtual void | project_r3 (double rmin, double rmax) |
| virtual void | asMfile (ostream &os) |
Public Attributes | |
| SimpleVectorHandle | wRes |
| SimpleVectorHandle | sRes |
| SimpleVectorHandle | zRes |
| SimpleVectorHandle | rSV |
| SimpleVectorHandle | rUZ |
| int | hyperplanedim |
| int | nobservations |
|
||||||||||||
|
construct Svm object with specified dimensions |
|
||||||||||||
|
Modify the "complementarity" component of the residuals, by adding the pairwise products of the complementary variables plus a constant alpha to this term. Implements Residuals. |
|
|
print residuals to a specified output stream |
|
||||||||||||
|
calculate residuals, their norms, and duality/complementarity gap, given a problem and variable set. Implements Residuals. |
|
|
set the noncomplementarity components of the residual (the terms arising from the linear equalities in the KKT conditions) to 0. Reimplemented from Residuals. |
|
|
set the complementarity component of the residuals to 0. Implements Residuals. |
|
||||||||||||
|
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.
Implements Residuals. |
|
||||||||||||
|
Set the "complementarity" component of the residuals to the pairwise products of the complementary variables plus a constant alpha Implements Residuals. |
|
|
dimension of Euclidean space in which each observation resides |
|
|
number of observations |
|
|
storage for the various residual components |
|
|
storage for the various residual components |
|
|
storage for the various residual components |
|
|
storage for the various residual components |
|
|
storage for the various residual components |
1.2.18