Send feedback
C++ Reference: class DimensionCumulOptimizerCore
This documentation is automatically generated.
Utility class used in Local/GlobalDimensionCumulOptimizer to set the linear
solver constraints and solve the problem.
Method
dimension
Return type: const RoutingDimension*
DimensionCumulOptimizerCore
Arguments: const RoutingDimension* dimension,
bool use_precedence_propagator
Optimize
Return type: bool
Arguments: const std::function<int64_t(int64_t)>& next_accessor,
RoutingLinearSolverWrapper* solver,
std::vector<int64_t>* cumul_values,
std::vector<int64_t>* break_values, int64_t* cost,
int64_t* transit_cost, bool clear_lp = true
OptimizeAndPack
Return type: bool
Arguments: const std::function<int64_t(int64_t)>& next_accessor,
RoutingLinearSolverWrapper* solver,
std::vector<int64_t>* cumul_values,
std::vector<int64_t>* break_values
OptimizeAndPackSingleRoute
Return type: DimensionSchedulingStatus
Arguments:
int vehicle, const std::function<int64_t(int64_t)>& next_accessor,
RoutingLinearSolverWrapper* solver, std::vector<int64_t>* cumul_values,
std::vector<int64_t>* break_values
OptimizeSingleRoute
Return type: DimensionSchedulingStatus
Arguments:
int vehicle, const std::function<int64_t(int64_t)>& next_accessor,
RoutingLinearSolverWrapper* solver, std::vector<int64_t>* cumul_values,
std::vector<int64_t>* break_values, int64_t* cost, int64_t* transit_cost,
bool clear_lp = true
In the OptimizeSingleRoute() and Optimize() methods, if both "cumul_values"
and "cost" parameters are null, we don't optimize the cost and stop at the
first feasible solution in the linear solver (since in this case only
feasibility is of interest).
Send feedback
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 2021-07-30 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?