![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
Definition at line 56 of file christofides.h.
#include <christofides.h>
Public Types | |
| enum class | MatchingAlgorithm { MINIMUM_WEIGHT_MATCHING , MINIMUM_WEIGHT_MATCHING_WITH_MIP , MINIMAL_WEIGHT_MATCHING } |
Public Member Functions | |
| ChristofidesPathSolver (NodeIndex num_nodes, CostFunction costs) | |
| void | SetMatchingAlgorithm (MatchingAlgorithm matching) |
| absl::StatusOr< CostType > | TravelingSalesmanCost () |
| absl::StatusOr< const std::vector< NodeIndex > & > | TravelingSalesmanPath () |
| absl::Status | Solve () |
|
strong |
| Enumerator | |
|---|---|
| MINIMUM_WEIGHT_MATCHING | |
| MINIMUM_WEIGHT_MATCHING_WITH_MIP | |
| MINIMAL_WEIGHT_MATCHING | |
Definition at line 58 of file christofides.h.
| operations_research::ChristofidesPathSolver< CostType, ArcIndex, NodeIndex, CostFunction >::ChristofidesPathSolver | ( | NodeIndex | num_nodes, |
| CostFunction | costs ) |
Definition at line 240 of file christofides.h.
|
inline |
Definition at line 73 of file christofides.h.
| absl::Status operations_research::ChristofidesPathSolver< CostType, ArcIndex, NodeIndex, CostFunction >::Solve | ( | ) |
Definition at line 273 of file christofides.h.
| absl::StatusOr< CostType > operations_research::ChristofidesPathSolver< CostType, ArcIndex, NodeIndex, CostFunction >::TravelingSalesmanCost | ( | ) |
Definition at line 251 of file christofides.h.
| absl::StatusOr< const std::vector< NodeIndex > & > operations_research::ChristofidesPathSolver< CostType, ArcIndex, NodeIndex, CostFunction >::TravelingSalesmanPath | ( | ) |
Definition at line 262 of file christofides.h.