C++ Reference: class GlobalDimensionCumulOptimizer
Note: This documentation is automatically generated.
Method |
ComputeCumulCostWithoutFixedTransits | Return type: DimensionSchedulingStatus Arguments:
const std::function<int64_t(int64_t)>& next_accessor,
int64_t* 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: DimensionSchedulingStatus Arguments:
const std::function<int64_t(int64_t)>& next_accessor,
std::vector<int64_t>* optimal_cumuls,
std::vector<int64_t>* optimal_breaks,
std::vector<std::vector<int>>* optimal_resource_indices_per_group If feasible, computes the optimal values for cumul, break and resource
variables, minimizing cumul soft lower/upper bound costs and vehicle/global
span costs, stores them in "optimal_cumuls" (if not null), "optimal_breaks"
and "optimal_resource_indices_per_group", and returns true.
Returns false if the routes are not feasible.
|
ComputePackedCumuls | Return type: DimensionSchedulingStatus Arguments:
const std::function<int64_t(int64_t)>& next_accessor,
std::vector<int64_t>* packed_cumuls, std::vector<int64_t>* packed_breaks,
std::vector<std::vector<int>>* resource_indices_per_group 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 | Arguments:
const RoutingDimension* dimension,
RoutingSearchParameters::SchedulingSolver solver_type |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[[["`GlobalDimensionCumulOptimizer` helps minimize costs related to cumulative values, soft lower/upper bounds, and vehicle/global spans for a given Routing Dimension."],["It offers methods to compute optimal cumulative values, breaks, and resource indices, or only the optimal cost without considering fixed transit times."],["`ComputePackedCumuls` further optimizes the arrangement of cumulative values on routes while maintaining the same cost."],["It utilizes a specified scheduling solver type for computations."],["Access to the underlying Routing Dimension is provided through the `dimension` method."]]],[]]