Go to the source code of this file.
|
| | operations_research |
| | The vehicle routing library lets one model and solve generic vehicle routing problems ranging from the Traveling Salesman Problem to more complex problems such as the Capacitated Vehicle Routing Problem with Time Windows.
|
| |
|
| | DEFINE_int64 (sweep_sectors, 1, "The number of sectors the space is divided before it is sweeped " "by the ray.") |
| |
| DecisionBuilder * | MakeSetValuesFromTargets (Solver *solver, std::vector< IntVar * > variables, std::vector< int64 > targets) |
| | A decision builder which tries to assign values to variables as close as possible to target values first. More...
|
| |
| void | FillPathEvaluation (const std::vector< int64 > &path, const RoutingModel::TransitCallback2 &evaluator, std::vector< int64 > *values) |
| |
◆ CP_ROUTING_ADD_CALLBACK_OPERATOR
| #define CP_ROUTING_ADD_CALLBACK_OPERATOR |
( |
|
operator_type, |
|
|
|
cp_operator_type |
|
) |
| |
Value: if (CostsAreHomogeneousAcrossVehicles()) { \
local_search_operators_[operator_type] = solver_->MakeOperator( \
nexts_, \
return GetArcCostForVehicle(i, j, k); \
}, \
Solver::cp_operator_type); \
} else { \
local_search_operators_[operator_type] = solver_->MakeOperator( \
nexts_, vehicle_vars_, \
return GetArcCostForVehicle(i, j, k); \
}, \
Solver::cp_operator_type); \
}
Definition at line 4434 of file routing.cc.
◆ CP_ROUTING_ADD_OPERATOR
| #define CP_ROUTING_ADD_OPERATOR |
( |
|
operator_type, |
|
|
|
cp_operator_type |
|
) |
| |
Value: if (CostsAreHomogeneousAcrossVehicles()) { \
local_search_operators_[operator_type] = \
solver_->MakeOperator(nexts_, Solver::cp_operator_type); \
} else { \
local_search_operators_[operator_type] = solver_->MakeOperator( \
nexts_, vehicle_vars_, Solver::cp_operator_type); \
}
Definition at line 4417 of file routing.cc.
◆ CP_ROUTING_ADD_OPERATOR2
| #define CP_ROUTING_ADD_OPERATOR2 |
( |
|
operator_type, |
|
|
|
cp_operator_class |
|
) |
| |
Value: local_search_operators_[operator_type] = \
MakeLocalSearchOperator<cp_operator_class>( \
solver_.get(), nexts_, \
CostsAreHomogeneousAcrossVehicles() ? std::vector<IntVar*>() \
: vehicle_vars_, \
vehicle_start_class_callback_);
Definition at line 4426 of file routing.cc.
◆ CP_ROUTING_PUSH_OPERATOR
| #define CP_ROUTING_PUSH_OPERATOR |
( |
|
operator_type, |
|
|
|
operator_method, |
|
|
|
operators |
|
) |
| |
Value: if (search_parameters.local_search_operators().use_##operator_method() == \
operators.push_back(local_search_operators_[operator_type]); \
}
Definition at line 4609 of file routing.cc.
◆ DEFINE_int64()
| DEFINE_int64 |
( |
sweep_sectors |
, |
|
|
1 |
, |
|
|
"The number of sectors the space is divided before it is sweeped " "by the ray." |
|
|
) |
| |