shark::WS2MaximumGradientCriterion Struct Reference

Working set selection by maximization of the projected gradient. More...

#include <shark/Algorithms/QP/BoxConstrainedProblems.h>

Public Member Functions

template<class Problem >
double operator() (Problem &problem, std::size_t &i, std::size_t &j)
 
void reset ()
 

Detailed Description

Working set selection by maximization of the projected gradient.

This selection operator picks the largest and second largest variable index if possible.

Definition at line 44 of file BoxConstrainedProblems.h.

Member Function Documentation

◆ operator()()

template<class Problem >
double shark::WS2MaximumGradientCriterion::operator() ( Problem &  problem,
std::size_t &  i,
std::size_t &  j 
)
inline

Definition at line 46 of file BoxConstrainedProblems.h.

References shark::swap().

◆ reset()

void shark::WS2MaximumGradientCriterion::reset ( )
inline

Definition at line 72 of file BoxConstrainedProblems.h.


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