![]() |
OR-Tools
9.6
|
Definition at line 55 of file perfect_matching.h.
Public Types | |
| enum | Status { OPTIMAL = 0 , INFEASIBLE = 1 , INTEGER_OVERFLOW = 2 , COST_OVERFLOW = 3 } |
Public Member Functions | |
| MinCostPerfectMatching () | |
| MinCostPerfectMatching (int num_nodes) | |
| void | Reset (int num_nodes) |
| void | AddEdgeWithCost (int tail, int head, int64_t cost) |
| ABSL_MUST_USE_RESULT Status | Solve () |
| int64_t | OptimalCost () const |
| int | Match (int node) const |
| const std::vector< int > & | Matches () const |
| enum Status |
| Enumerator | |
|---|---|
| OPTIMAL | |
| INFEASIBLE | |
| INTEGER_OVERFLOW | |
| COST_OVERFLOW | |
Definition at line 86 of file perfect_matching.h.
|
inline |
Definition at line 59 of file perfect_matching.h.
|
inlineexplicit |
Definition at line 60 of file perfect_matching.h.
| void AddEdgeWithCost | ( | int | tail, |
| int | head, | ||
| int64_t | cost | ||
| ) |
Definition at line 35 of file perfect_matching.cc.
|
inline |
Definition at line 114 of file perfect_matching.h.
|
inline |
Definition at line 118 of file perfect_matching.h.
|
inline |
Definition at line 107 of file perfect_matching.h.
| void Reset | ( | int | num_nodes | ) |
Definition at line 29 of file perfect_matching.cc.
| MinCostPerfectMatching::Status Solve | ( | ) |
Definition at line 47 of file perfect_matching.cc.