This commit is contained in:
Laurent Perron
2019-07-26 10:21:41 -07:00
parent 43b7faa516
commit 8ff6d1764d
2 changed files with 5 additions and 2 deletions

View File

@@ -134,6 +134,9 @@ bool LocalDimensionCumulOptimizer::ComputePackedRouteCumuls(
lp_solver_[vehicle].get(), packed_cumuls);
}
const int CumulBoundsPropagator::kNoParent = -2;
const int CumulBoundsPropagator::kParentToBePropagated = -1;
CumulBoundsPropagator::CumulBoundsPropagator(const RoutingDimension* dimension)
: dimension_(*dimension), num_nodes_(2 * dimension->cumuls().size()) {
outgoing_arcs_.resize(num_nodes_);

View File

@@ -47,8 +47,8 @@ class CumulBoundsPropagator {
int head;
int64 offset;
};
static constexpr int kNoParent = -2;
static constexpr int kParentToBePropagated = -1;
static const int kNoParent;
static const int kParentToBePropagated;
// Return the node corresponding to the lower bound of the cumul of index and
// -index respectively.