C++ Reference

C++ Reference: Routing

routing.h File Reference

Go to the source code of this file.

Classes

class  RoutingModel
 
struct  RoutingModel::StateDependentTransit
 What follows is relevant for models with time/state dependent transits. More...
 
struct  RoutingModel::CostClass
 
struct  RoutingModel::CostClass::DimensionCost
 SUBTLE: The vehicle's fixed cost is skipped on purpose here, because we can afford to do so: More...
 
struct  RoutingModel::VehicleClass
 
struct  RoutingModel::VehicleTypeContainer
 Struct used to sort and store vehicles by their type. More...
 
struct  RoutingModel::VehicleTypeContainer::VehicleClassEntry
 
class  RoutingModel::ResourceGroup
 A ResourceGroup defines a set of available Resources with attributes on one or multiple dimensions. More...
 
class  RoutingModel::ResourceGroup::Attributes
 Attributes for a dimension. More...
 
class  RoutingModel::ResourceGroup::Resource
 A Resource sets attributes (costs/constraints) for a set of dimensions. More...
 
class  RoutingModelVisitor
 Routing model visitor. More...
 
class  DisjunctivePropagator
 This class acts like a CP propagator: it takes a set of tasks given by their start/duration/end features, and reduces the range of possible values. More...
 
struct  DisjunctivePropagator::Tasks
 A structure to hold tasks described by their features. More...
 
struct  TravelBounds
 
class  GlobalVehicleBreaksConstraint
 GlobalVehicleBreaksConstraint ensures breaks constraints are enforced on all vehicles in the dimension passed to its constructor. More...
 
class  TypeRegulationsChecker
 
struct  TypeRegulationsChecker::TypePolicyOccurrence
 
class  TypeIncompatibilityChecker
 Checker for type incompatibilities. More...
 
class  TypeRequirementChecker
 Checker for type requirements. More...
 
class  TypeRegulationsConstraint
 The following constraint ensures that incompatibilities and requirements between types are respected. More...
 
class  SimpleBoundCosts
 A structure meant to store soft bounds and associated violation constants. More...
 
struct  SimpleBoundCosts::BoundCost
 
class  RoutingDimension
 Dimensions represent quantities accumulated at nodes along the routes. More...
 
struct  RoutingDimension::NodePrecedence
 

Namespaces

namespace  operations_research
 Collection of objects used to extend the Constraint Solver library.
 

Functions

void AppendTasksFromPath (const std::vector< int64_t > &path, const TravelBounds &travel_bounds, const RoutingDimension &dimension, DisjunctivePropagator::Tasks *tasks)
 
void AppendTasksFromIntervals (const std::vector< IntervalVar * > &intervals, DisjunctivePropagator::Tasks *tasks)
 
void FillPathEvaluation (const std::vector< int64_t > &path, const RoutingModel::TransitCallback2 &evaluator, std::vector< int64_t > *values)
 
void FillTravelBoundsOfVehicle (int vehicle, const std::vector< int64_t > &path, const RoutingDimension &dimension, TravelBounds *travel_bounds)
 
DecisionBuilder * MakeSetValuesFromTargets (Solver *solver, std::vector< IntVar * > variables, std::vector< int64_t > targets)
 A decision builder which tries to assign values to variables as close as possible to target values first. More...
 
bool SolveModelWithSat (const RoutingModel &model, const RoutingSearchParameters &search_parameters, const Assignment *initial_solution, Assignment *solution)
 Attempts to solve the model using the cp-sat solver. More...
 
IntVarLocalSearchFilter * MakeVehicleBreaksFilter (const RoutingModel &routing_model, const RoutingDimension &dimension)
 
DecisionBuilder * MakeRestoreDimensionValuesForUnchangedRoutes (RoutingModel *model)