Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <routing_decision_builders.h>
Public Member Functions | |
FinalizerVariables (Solver *solver) | |
void | AddVariableToMinimize (IntVar *var) |
void | AddVariableToMaximize (IntVar *var) |
void | AddWeightedVariableToMinimize (IntVar *var, int64_t cost) |
void | AddWeightedVariableToMaximize (IntVar *var, int64_t cost) |
void | AddVariableTarget (IntVar *var, int64_t target) |
void | AddWeightedVariableTarget (IntVar *var, int64_t target, int64_t cost) |
FinalizerVariables. | |
DecisionBuilder * | CreateFinalizer () |
A container that allows to accumulate variables and weights to generate a static DecisionBuilder that uses weights to prioritize the branching decisions (by decreasing weight).
Definition at line 70 of file routing_decision_builders.h.
|
inlineexplicit |
Definition at line 72 of file routing_decision_builders.h.
void operations_research::FinalizerVariables::AddVariableTarget | ( | IntVar * | var, |
int64_t | target ) |
Add a variable to set the closest possible to the target value in the solution finalizer.
Definition at line 841 of file routing_decision_builders.cc.
void operations_research::FinalizerVariables::AddVariableToMaximize | ( | IntVar * | var | ) |
Adds a variable to maximize in the solution finalizer (see above for information on the solution finalizer).
Definition at line 848 of file routing_decision_builders.cc.
void operations_research::FinalizerVariables::AddVariableToMinimize | ( | IntVar * | var | ) |
Adds a variable to minimize in the solution finalizer. The solution finalizer is called each time a solution is found during the search and allows to instantiate secondary variables (such as dimension cumul variables).
Definition at line 852 of file routing_decision_builders.cc.
void operations_research::FinalizerVariables::AddWeightedVariableTarget | ( | IntVar * | var, |
int64_t | target, | ||
int64_t | cost ) |
Same as above with a weighted priority: the higher the cost, the more priority it has to be set close to the target value.
Definition at line 813 of file routing_decision_builders.cc.
void operations_research::FinalizerVariables::AddWeightedVariableToMaximize | ( | IntVar * | var, |
int64_t | cost ) |
Adds a variable to maximize in the solution finalizer, with a weighted priority: the higher the more priority it has.
Definition at line 836 of file routing_decision_builders.cc.
void operations_research::FinalizerVariables::AddWeightedVariableToMinimize | ( | IntVar * | var, |
int64_t | cost ) |
Adds a variable to minimize in the solution finalizer, with a weighted priority: the higher the more priority it has.
Definition at line 831 of file routing_decision_builders.cc.
DecisionBuilder * operations_research::FinalizerVariables::CreateFinalizer | ( | ) |
Definition at line 856 of file routing_decision_builders.cc.