#include <SvmVars.h>
Inheritance diagram for SvmVars:
Public Methods | |
SvmVars (int hyperplanedim_in, int nobservations_in) | |
SvmVars (int hyperplanedim_in, int nobservations_in, double w[], double v[], double z[], double u[], double s[]) | |
virtual | ~SvmVars () |
virtual void | saxpy (Variables *b, double alpha) |
virtual void | negate () |
virtual double | mu () |
virtual double | mustep (Variables *step, double alpha) |
virtual double | stepbound (Variables *b) |
virtual void | interiorPoint (double alpha, double beta) |
virtual void | shiftBoundVariables (double alpha, double beta) |
virtual double | violation () |
virtual void | print () |
virtual void | printCoefs () |
virtual void | copy (Variables *b) |
virtual double | findBlocking (Variables *step, double &primalValue, double &primalStep, double &dualValue, double &dualStep, int &firstOrSecond) |
virtual void | asMfile (ostream &os) |
virtual double | onenorm () |
virtual double | infnorm () |
Public Attributes | |
int | hyperplanedim |
int | nobservations |
SimpleVectorHandle | z |
SimpleVectorHandle | w |
SimpleVectorHandle | u |
SimpleVectorHandle | v |
SimpleVectorHandle | s |
|
constructor to make a Svm variables object of specified dimensions |
|
constructor to make a Svm variables object of specified dimensions for which storage has already been allocated for the five individual vector components |
|
destructor for Svm variables object |
|
write current set of variables to given output stream |
|
copy the variables Implements Variables. |
|
Performs the same function as stepbound, and supplies additional information about which component of the nonnegative variables is responsible for restricting alpha. In terms of the abstract formulation, the components have the following meanings.
Implements Variables. |
|
compute the inf-norm of the variables Implements Variables. |
|
In the abstract QP formulation, sets s to alpha, z to beta and the other variable components to zero. Implements Variables. |
|
compute complementarity gap, obtained by taking the inner product of the complementary vectors and dividing by the total number of components Implements Variables. |
|
compute the complementarity gap resulting from a step of length "alpha" along direction "step" Implements Variables. |
|
negate the value of all the variables in this structure Implements Variables. |
|
compute the 1-norm of the variables Implements Variables. |
|
print the variables Reimplemented from Variables. |
|
print only the interesting parts of the SVM variable vector (that is, the coefficient that define the separating hyperplane) |
|
performs saxpy operation: add alpha*b to current variables Implements Variables. |
|
In the standard QP formulation, sets s += alpha, z += beta Implements Variables. |
|
calculate the largest alpha in (0,1] such that the nonnegative variables stay nonnegative in the given search direction. In the abstract problem formulation, this is the largest value of alpha such that (s,z) + alpha * (b->s,b->z) >= 0.
Implements Variables. |
|
The amount by which the current variables violate the non-negativity constraints. Implements Variables. |
|
dimension of Euclidean space in which each observation resides |
|
number of observations |
|
vectors and the scalar that make up the Svm variables; see the paper by E. M. Gertz and S. J. Wright for details of the formulation |
|
vectors and the scalar that make up the Svm variables; see the paper by E. M. Gertz and S. J. Wright for details of the formulation |
|
vectors and the scalar that make up the Svm variables; see the paper by E. M. Gertz and S. J. Wright for details of the formulation |
|
vectors and the scalar that make up the Svm variables; see the paper by E. M. Gertz and S. J. Wright for details of the formulation |
|
vectors and the scalar that make up the Svm variables; see the paper by E. M. Gertz and S. J. Wright for details of the formulation |