Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions
Solver Class Reference
Inheritance diagram for Solver:
Inheritance graph
[legend]

List of all members.

Classes

struct  SolutionInfo

Public Member Functions

void Solve (int l, const QMatrix &Q, const double *p_, const schar *y_, double *alpha_, double Cp, double Cn, double eps, SolutionInfo *si, int shrinking)
 Solver ()
virtual ~Solver ()

Protected Types

enum  { LOWER_BOUND, UPPER_BOUND, FREE }

Protected Member Functions

virtual double calculate_rho ()
virtual void do_shrinking ()
double get_C (int i)
bool is_free (int i)
bool is_lower_bound (int i)
bool is_upper_bound (int i)
void reconstruct_gradient ()
virtual int select_working_set (int &i, int &j)
void swap_index (int i, int j)
void update_alpha_status (int i)

Protected Attributes

int * active_set
int active_size
double * alpha
char * alpha_status
double Cn
double Cp
double eps
double * G
double * G_bar
int l
double * p
const QMatrixQ
const double * QD
bool unshrink
schary

Private Member Functions

bool be_shrunk (int i, double Gmax1, double Gmax2)

Detailed Description

Definition at line 393 of file svm.cpp.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
LOWER_BOUND 
UPPER_BOUND 
FREE 

Definition at line 413 of file svm.cpp.


Constructor & Destructor Documentation

Solver::Solver ( ) [inline]

Definition at line 395 of file svm.cpp.

virtual Solver::~Solver ( ) [inline, virtual]

Definition at line 396 of file svm.cpp.


Member Function Documentation

bool Solver::be_shrunk ( int  i,
double  Gmax1,
double  Gmax2 
) [private]

Definition at line 885 of file svm.cpp.

double Solver::calculate_rho ( ) [protected, virtual]

Reimplemented in Solver_NU.

Definition at line 966 of file svm.cpp.

void Solver::do_shrinking ( ) [protected, virtual]

Reimplemented in Solver_NU.

Definition at line 905 of file svm.cpp.

double Solver::get_C ( int  i) [inline, protected]

Definition at line 426 of file svm.cpp.

bool Solver::is_free ( int  i) [inline, protected]

Definition at line 440 of file svm.cpp.

bool Solver::is_lower_bound ( int  i) [inline, protected]

Definition at line 439 of file svm.cpp.

bool Solver::is_upper_bound ( int  i) [inline, protected]

Definition at line 438 of file svm.cpp.

void Solver::reconstruct_gradient ( ) [protected]

Definition at line 462 of file svm.cpp.

int Solver::select_working_set ( int &  i,
int &  j 
) [protected, virtual]

Reimplemented in Solver_NU.

Definition at line 786 of file svm.cpp.

void Solver::Solve ( int  l,
const QMatrix Q,
const double *  p_,
const schar y_,
double *  alpha_,
double  Cp,
double  Cn,
double  eps,
SolutionInfo si,
int  shrinking 
)

Reimplemented in Solver_NU.

Definition at line 504 of file svm.cpp.

void Solver::swap_index ( int  i,
int  j 
) [protected]

Definition at line 450 of file svm.cpp.

void Solver::update_alpha_status ( int  i) [inline, protected]

Definition at line 430 of file svm.cpp.


Member Data Documentation

int* Solver::active_set [protected]

Definition at line 421 of file svm.cpp.

int Solver::active_size [protected]

Definition at line 410 of file svm.cpp.

double* Solver::alpha [protected]

Definition at line 415 of file svm.cpp.

char* Solver::alpha_status [protected]

Definition at line 414 of file svm.cpp.

double Solver::Cn [protected]

Definition at line 419 of file svm.cpp.

double Solver::Cp [protected]

Definition at line 419 of file svm.cpp.

double Solver::eps [protected]

Definition at line 418 of file svm.cpp.

double* Solver::G [protected]

Definition at line 412 of file svm.cpp.

double* Solver::G_bar [protected]

Definition at line 422 of file svm.cpp.

int Solver::l [protected]

Definition at line 423 of file svm.cpp.

double* Solver::p [protected]

Definition at line 420 of file svm.cpp.

const QMatrix* Solver::Q [protected]

Definition at line 416 of file svm.cpp.

const double* Solver::QD [protected]

Definition at line 417 of file svm.cpp.

bool Solver::unshrink [protected]

Definition at line 424 of file svm.cpp.

schar* Solver::y [protected]

Definition at line 411 of file svm.cpp.


The documentation for this class was generated from the following file:


haf_grasping
Author(s): David Fischinger
autogenerated on Wed Jan 11 2017 03:48:49