![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
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.
#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 () |
|
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 926 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 933 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 937 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 898 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 921 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 916 of file routing_decision_builders.cc.
| DecisionBuilder * operations_research::FinalizerVariables::CreateFinalizer | ( | ) |
Definition at line 941 of file routing_decision_builders.cc.