C++ Reference: class GlobalDimensionCumulOptimizer

This documentation is automatically generated.

Method
ComputeCumulCostWithoutFixedTransits

Return type: bool

Arguments: const std::function<int64(int64)>& next_accessor, int64* optimal_cost_without_transits

If feasible, computes the optimal cost of the entire model with regards to the optimizer_core_'s dimension costs, minimizing cumul soft lower/upper bound costs and vehicle/global span costs, and stores it in "optimal_cost" (if not null). Returns true iff all the constraints can be respected.

ComputeCumuls

Return type: bool

Arguments: const std::function<int64(int64)>& next_accessor, std::vector<int64>* optimal_cumuls

If feasible, computes the optimal cumul values, minimizing cumul soft lower/upper bound costs and vehicle/global span costs, stores them in "optimal_cumuls" (if not null), and returns true. Returns false if the routes are not feasible.

ComputePackedCumuls

Return type: bool

Arguments: const std::function<int64(int64)>& next_accessor, std::vector<int64>* packed_cumuls

Similar to ComputeCumuls, but also tries to pack the cumul values on all routes, such that the cost remains the same, the cumuls of route ends are minimized, and then the cumuls of the starts of the routes are maximized.

dimension

Return type: const RoutingDimension*

GlobalDimensionCumulOptimizer

Return type: explicit

Arguments: const RoutingDimension* dimension

IsFeasible

Return type: bool

Arguments: const std::function<int64(int64)>& next_accessor

Returns true iff the routes resulting from the next_accessor are feasible wrt the constraints on the optimizer_core_.dimension()'s cumuls.