14#ifndef OR_TOOLS_CONSTRAINT_SOLVER_ROUTING_DECISION_BUILDERS_H_
15#define OR_TOOLS_CONSTRAINT_SOLVER_ROUTING_DECISION_BUILDERS_H_
21#include "absl/container/flat_hash_map.h"
22#include "absl/container/flat_hash_set.h"
32 std::vector<IntVar*> variables,
33 std::vector<int64_t> targets);
41 Solver* solver, LocalDimensionCumulOptimizer* lp_optimizer,
42 LocalDimensionCumulOptimizer* mp_optimizer,
bool optimize_and_pack =
false,
43 std::vector<RoutingModel::RouteDimensionTravelInfo>
44 dimension_travel_info_per_route = {});
48 Solver* solver, GlobalDimensionCumulOptimizer* global_optimizer,
49 GlobalDimensionCumulOptimizer* global_mp_optimizer, SearchMonitor* monitor,
50 bool optimize_and_pack =
false,
51 std::vector<RoutingModel::RouteDimensionTravelInfo>
52 dimension_travel_info_per_route = {});
103 std::vector<std::pair<VarTarget, int64_t>>
104 weighted_finalizer_variable_targets_;
105 std::vector<VarTarget> finalizer_variable_targets_;
106 absl::flat_hash_map<IntVar*, int> weighted_finalizer_variable_index_;
107 absl::flat_hash_set<IntVar*> finalizer_variable_target_set_;
DecisionBuilder * CreateFinalizer()
void AddVariableToMinimize(IntVar *var)
void AddVariableTarget(IntVar *var, int64_t target)
void AddWeightedVariableToMinimize(IntVar *var, int64_t cost)
void AddVariableToMaximize(IntVar *var)
void AddWeightedVariableTarget(IntVar *var, int64_t target, int64_t cost)
FinalizerVariables.
void AddWeightedVariableToMaximize(IntVar *var, int64_t cost)
FinalizerVariables(Solver *solver)
For the time being, Solver is neither MT_SAFE nor MT_HOT.
In SWIG mode, we don't want anything besides these top-level includes.
DecisionBuilder * MakeRestoreDimensionValuesForUnchangedRoutes(RoutingModel *model)
DecisionBuilder * MakeSetCumulsFromLocalDimensionCosts(Solver *solver, LocalDimensionCumulOptimizer *lp_optimizer, LocalDimensionCumulOptimizer *mp_optimizer, bool optimize_and_pack, std::vector< RoutingModel::RouteDimensionTravelInfo > dimension_travel_info_per_route)
DecisionBuilder * MakeSetCumulsFromGlobalDimensionCosts(Solver *solver, GlobalDimensionCumulOptimizer *global_optimizer, GlobalDimensionCumulOptimizer *global_mp_optimizer, SearchMonitor *monitor, bool optimize_and_pack, std::vector< RoutingModel::RouteDimensionTravelInfo > dimension_travel_info_per_route)
Variant based on global optimizers, handling all routes together.
DecisionBuilder * MakeSetValuesFromTargets(Solver *solver, std::vector< IntVar * > variables, std::vector< int64_t > targets)