Violations checker for the separation oracle in the bounded degree minimum spanning tree problem. More...
#include <bounded_degree_mst_oracle.hpp>
Public Types | |
using | Candidate = std::pair< AuxVertex, AuxVertex > |
using | CandidateList = std::vector< Candidate > |
Public Member Functions | |
template<typename Problem , typename LP > | |
const CandidateList & | get_violation_candidates (const Problem &problem, const LP &lp) |
template<typename Problem > | |
Violation | check_violation (Candidate candidate, const Problem &problem) |
template<typename Problem , typename LP > | |
void | add_violated_constraint (Candidate violating_pair, const Problem &problem, LP &lp) |
Violations checker for the separation oracle in the bounded degree minimum spanning tree problem.
Definition at line 34 of file bounded_degree_mst_oracle.hpp.
|
inline |
Adds a violated constraint to the LP.
Definition at line 73 of file bounded_degree_mst_oracle.hpp.
|
inline |
Checks if the given constraint candidate is violated an if it is, returns the violation value and violated constraint ID.
Definition at line 60 of file bounded_degree_mst_oracle.hpp.
|
inline |
Returns an iterator range of violated constraint candidates.
Definition at line 48 of file bounded_degree_mst_oracle.hpp.