DotNet Reference

DotNet Reference

RoutingModel

Detailed Description

Definition at line 18 of file RoutingModel.cs.

Public Member Functions

void Dispose ()
 
 RoutingModel (RoutingIndexManager index_manager)
 
 RoutingModel (RoutingIndexManager index_manager, Google.OrTools.ConstraintSolver.RoutingModelParameters parameters)
 
int RegisterUnaryTransitCallback (LongToLong callback)
 
int RegisterPositiveUnaryTransitCallback (LongToLong callback)
 
int RegisterTransitCallback (LongLongToLong callback)
 
int RegisterPositiveTransitCallback (LongLongToLong callback)
 
bool AddDimension (int evaluator_index, long slack_max, long capacity, bool fix_start_cumul_to_zero, string name)
 
bool AddDimensionWithVehicleTransits (int[] evaluator_indices, long slack_max, long capacity, bool fix_start_cumul_to_zero, string name)
 
bool AddDimensionWithVehicleCapacity (int evaluator_index, long slack_max, long[] vehicle_capacities, bool fix_start_cumul_to_zero, string name)
 
bool AddDimensionWithVehicleTransitAndCapacity (int[] evaluator_indices, long slack_max, long[] vehicle_capacities, bool fix_start_cumul_to_zero, string name)
 
bool AddConstantDimensionWithSlack (long value, long capacity, long slack_max, bool fix_start_cumul_to_zero, string name)
 
bool AddConstantDimension (long value, long capacity, bool fix_start_cumul_to_zero, string name)
 
bool AddVectorDimension (long[] values, long capacity, bool fix_start_cumul_to_zero, string name)
 
Constraint MakePathSpansAndTotalSlacks (RoutingDimension dimension, IntVarVector spans, IntVarVector total_slacks)
 
bool HasDimension (string dimension_name)
 
RoutingDimension GetDimensionOrDie (string dimension_name)
 
RoutingDimension GetMutableDimension (string dimension_name)
 
void SetPrimaryConstrainedDimension (string dimension_name)
 
string GetPrimaryConstrainedDimension ()
 
int AddDisjunction (long[] indices, long penalty, long max_cardinality)
 
int AddDisjunction (long[] indices, long penalty)
 
int AddDisjunction (long[] indices)
 
int[] GetDisjunctionIndices (long index)
 
long[] GetDisjunctionIndices (int index)
 
long GetDisjunctionPenalty (int index)
 
long GetDisjunctionMaxCardinality (int index)
 
int GetNumberOfDisjunctions ()
 
void IgnoreDisjunctionsAlreadyForcedToZero ()
 
void AddSoftSameVehicleConstraint (long[] indices, long cost)
 
void SetAllowedVehiclesForIndex (int[] vehicles, long index)
 
bool IsVehicleAllowedForIndex (int vehicle, long index)
 
void AddPickupAndDelivery (long pickup, long delivery)
 
void AddPickupAndDeliverySets (int pickup_disjunction, int delivery_disjunction)
 
void SetPickupAndDeliveryPolicyOfAllVehicles (int policy)
 
void SetPickupAndDeliveryPolicyOfVehicle (int policy, int vehicle)
 
int GetPickupAndDeliveryPolicyOfVehicle (int vehicle)
 
int GetNumOfSingletonNodes ()
 
void SetVisitType (long index, int type, int type_policy)
 
int GetVisitType (long index)
 
int GetVisitTypePolicy (long index)
 
int GetNumberOfVisitTypes ()
 
void AddRequiredTypeAlternativesWhenAddingType (int dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t required_type_alternatives)
 
void AddRequiredTypeAlternativesWhenRemovingType (int dependent_type, SWIGTYPE_p_absl__flat_hash_setT_int_t required_type_alternatives)
 
SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t GetRequiredTypeAlternativesWhenAddingType (int type)
 
SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t GetRequiredTypeAlternativesWhenRemovingType (int type)
 
long UnperformedPenalty (long var_index)
 
long UnperformedPenaltyOrValue (long default_value, long var_index)
 
long GetDepot ()
 
void SetArcCostEvaluatorOfAllVehicles (int evaluator_index)
 
void SetArcCostEvaluatorOfVehicle (int evaluator_index, int vehicle)
 
void SetFixedCostOfAllVehicles (long cost)
 
void SetFixedCostOfVehicle (long cost, int vehicle)
 
long GetFixedCostOfVehicle (int vehicle)
 
void SetAmortizedCostFactorsOfAllVehicles (long linear_cost_factor, long quadratic_cost_factor)
 
void SetAmortizedCostFactorsOfVehicle (long linear_cost_factor, long quadratic_cost_factor, int vehicle)
 
long[] GetAmortizedLinearCostFactorOfVehicles ()
 
long[] GetAmortizedQuadraticCostFactorOfVehicles ()
 
void ConsiderEmptyRouteCostsForVehicle (bool consider_costs, int vehicle)
 
bool AreEmptyRouteCostsConsideredForVehicle (int vehicle)
 
void SetFirstSolutionEvaluator (LongLongToLong evaluator)
 
void AddLocalSearchOperator (LocalSearchOperator ls_operator)
 
void AddSearchMonitor (SearchMonitor monitor)
 
void AddAtSolutionCallback (VoidToVoid callback)
 
void AddVariableMinimizedByFinalizer (IntVar var)
 
void AddVariableMaximizedByFinalizer (IntVar var)
 
void AddWeightedVariableMinimizedByFinalizer (IntVar var, long cost)
 
void AddVariableTargetToFinalizer (IntVar var, long target)
 
void CloseModel ()
 
void CloseModelWithParameters (Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)
 
Assignment Solve (Assignment assignment)
 
Assignment Solve ()
 
Assignment SolveWithParameters (Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)
 
Assignment SolveFromAssignmentWithParameters (Assignment assignment, Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)
 
void SetAssignmentFromOtherModelAssignment (Assignment target_assignment, RoutingModel source_model, Assignment source_assignment)
 
long ComputeLowerBound ()
 
int GetStatus ()
 
IntVar ApplyLocks (long[] locks)
 
bool ApplyLocksToAllVehicles (long[][] locks, bool close_routes)
 
Assignment PreAssignment ()
 
Assignment MutablePreAssignment ()
 
bool WriteAssignment (string file_name)
 
Assignment ReadAssignment (string file_name)
 
Assignment RestoreAssignment (Assignment solution)
 
Assignment ReadAssignmentFromRoutes (long[][] routes, bool ignore_inactive_indices)
 
bool RoutesToAssignment (long[][] routes, bool ignore_inactive_indices, bool close_routes, Assignment assignment)
 
void AssignmentToRoutes (Assignment assignment, long[][] routes)
 
Assignment CompactAssignment (Assignment assignment)
 
Assignment CompactAndCheckAssignment (Assignment assignment)
 
void AddToAssignment (IntVar var)
 
void AddIntervalToAssignment (IntervalVar interval)
 
void AddLocalSearchFilter (LocalSearchFilter filter)
 
long Start (int vehicle)
 
long End (int vehicle)
 
bool IsStart (long index)
 
bool IsEnd (long index)
 
int VehicleIndex (int index)
 
long Next (Assignment assignment, long index)
 
bool IsVehicleUsed (Assignment assignment, int vehicle)
 
IntVarVector Nexts ()
 
IntVarVector VehicleVars ()
 
IntVar NextVar (long index)
 
IntVar ActiveVar (long index)
 
IntVar VehicleCostsConsideredVar (int vehicle)
 
IntVar VehicleVar (long index)
 
IntVar CostVar ()
 
long GetArcCostForVehicle (long from_index, long to_index, long vehicle)
 
bool CostsAreHomogeneousAcrossVehicles ()
 
long GetHomogeneousCost (long from_index, long to_index)
 
long GetArcCostForFirstSolution (long from_index, long to_index)
 
long GetArcCostForClass (long from_index, long to_index, long cost_class_index)
 
int GetCostClassIndexOfVehicle (long vehicle)
 
bool HasVehicleWithCostClassIndex (int cost_class_index)
 
int GetCostClassesCount ()
 
int GetNonZeroCostClassesCount ()
 
int GetVehicleClassIndexOfVehicle (long vehicle)
 
int GetVehicleClassesCount ()
 
int[] GetSameVehicleIndicesOfIndex (int node)
 
bool ArcIsMoreConstrainedThanArc (long from, long to1, long to2)
 
string DebugOutputAssignment (Assignment solution_assignment, string dimension_to_print)
 
Solver solver ()
 
bool CheckLimit ()
 
int Nodes ()
 
int Vehicles ()
 
long Size ()
 
long GetNumberOfDecisionsInFirstSolution (Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)
 
long GetNumberOfRejectsInFirstSolution (Google.OrTools.ConstraintSolver.RoutingSearchParameters search_parameters)
 
bool IsMatchingModel ()
 
DecisionBuilder MakeGuidedSlackFinalizer (RoutingDimension dimension, LongToLong initializer)
 
DecisionBuilder MakeSelfDependentDimensionFinalizer (RoutingDimension dimension)
 

Static Public Attributes

static readonly int ROUTING_NOT_SOLVED = operations_research_constraint_solverPINVOKE.RoutingModel_ROUTING_NOT_SOLVED_get()
 
static readonly int ROUTING_SUCCESS = operations_research_constraint_solverPINVOKE.RoutingModel_ROUTING_SUCCESS_get()
 
static readonly int ROUTING_FAIL = operations_research_constraint_solverPINVOKE.RoutingModel_ROUTING_FAIL_get()
 
static readonly int ROUTING_FAIL_TIMEOUT = operations_research_constraint_solverPINVOKE.RoutingModel_ROUTING_FAIL_TIMEOUT_get()
 
static readonly int ROUTING_INVALID = operations_research_constraint_solverPINVOKE.RoutingModel_ROUTING_INVALID_get()
 
static readonly int PICKUP_AND_DELIVERY_NO_ORDER = operations_research_constraint_solverPINVOKE.RoutingModel_PICKUP_AND_DELIVERY_NO_ORDER_get()
 
static readonly int PICKUP_AND_DELIVERY_LIFO = operations_research_constraint_solverPINVOKE.RoutingModel_PICKUP_AND_DELIVERY_LIFO_get()
 
static readonly int PICKUP_AND_DELIVERY_FIFO = operations_research_constraint_solverPINVOKE.RoutingModel_PICKUP_AND_DELIVERY_FIFO_get()
 
static readonly int TYPE_ADDED_TO_VEHICLE = operations_research_constraint_solverPINVOKE.RoutingModel_TYPE_ADDED_TO_VEHICLE_get()
 
static readonly int ADDED_TYPE_REMOVED_FROM_VEHICLE = operations_research_constraint_solverPINVOKE.RoutingModel_ADDED_TYPE_REMOVED_FROM_VEHICLE_get()
 
static readonly int TYPE_ON_VEHICLE_UP_TO_VISIT = operations_research_constraint_solverPINVOKE.RoutingModel_TYPE_ON_VEHICLE_UP_TO_VISIT_get()
 
static readonly int TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED = operations_research_constraint_solverPINVOKE.RoutingModel_TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED_get()
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Protected Attributes

bool swigCMemOwn
 

Properties

static long kNoPenalty [get]
 
static int kNoDisjunction [get]
 
static int kNoDimension [get]
 

Constructor & Destructor Documentation

◆ RoutingModel() [1/2]

RoutingModel ( RoutingIndexManager  index_manager)
inline

Definition at line 98 of file RoutingModel.cs.

◆ RoutingModel() [2/2]

Definition at line 102 of file RoutingModel.cs.

Member Function Documentation

◆ ActiveVar()

IntVar ActiveVar ( long  index)
inline

Definition at line 646 of file RoutingModel.cs.

◆ AddAtSolutionCallback()

void AddAtSolutionCallback ( VoidToVoid  callback)
inline

Definition at line 426 of file RoutingModel.cs.

◆ AddConstantDimension()

bool AddConstantDimension ( long  value,
long  capacity,
bool  fix_start_cumul_to_zero,
string  name 
)
inline

Definition at line 156 of file RoutingModel.cs.

◆ AddConstantDimensionWithSlack()

bool AddConstantDimensionWithSlack ( long  value,
long  capacity,
long  slack_max,
bool  fix_start_cumul_to_zero,
string  name 
)
inline

Definition at line 150 of file RoutingModel.cs.

◆ AddDimension()

bool AddDimension ( int  evaluator_index,
long  slack_max,
long  capacity,
bool  fix_start_cumul_to_zero,
string  name 
)
inline

Definition at line 126 of file RoutingModel.cs.

◆ AddDimensionWithVehicleCapacity()

bool AddDimensionWithVehicleCapacity ( int  evaluator_index,
long  slack_max,
long[]  vehicle_capacities,
bool  fix_start_cumul_to_zero,
string  name 
)
inline

Definition at line 138 of file RoutingModel.cs.

◆ AddDimensionWithVehicleTransitAndCapacity()

bool AddDimensionWithVehicleTransitAndCapacity ( int[]  evaluator_indices,
long  slack_max,
long[]  vehicle_capacities,
bool  fix_start_cumul_to_zero,
string  name 
)
inline

Definition at line 144 of file RoutingModel.cs.

◆ AddDimensionWithVehicleTransits()

bool AddDimensionWithVehicleTransits ( int[]  evaluator_indices,
long  slack_max,
long  capacity,
bool  fix_start_cumul_to_zero,
string  name 
)
inline

Definition at line 132 of file RoutingModel.cs.

◆ AddDisjunction() [1/3]

int AddDisjunction ( long[]  indices)
inline

Definition at line 212 of file RoutingModel.cs.

◆ AddDisjunction() [2/3]

int AddDisjunction ( long[]  indices,
long  penalty 
)
inline

Definition at line 208 of file RoutingModel.cs.

◆ AddDisjunction() [3/3]

int AddDisjunction ( long[]  indices,
long  penalty,
long  max_cardinality 
)
inline

Definition at line 204 of file RoutingModel.cs.

◆ AddIntervalToAssignment()

void AddIntervalToAssignment ( IntervalVar  interval)
inline

Definition at line 585 of file RoutingModel.cs.

◆ AddLocalSearchFilter()

void AddLocalSearchFilter ( LocalSearchFilter  filter)
inline

Definition at line 589 of file RoutingModel.cs.

◆ AddLocalSearchOperator()

void AddLocalSearchOperator ( LocalSearchOperator  ls_operator)
inline

Definition at line 418 of file RoutingModel.cs.

◆ AddPickupAndDelivery()

void AddPickupAndDelivery ( long  pickup,
long  delivery 
)
inline

Definition at line 272 of file RoutingModel.cs.

◆ AddPickupAndDeliverySets()

void AddPickupAndDeliverySets ( int  pickup_disjunction,
int  delivery_disjunction 
)
inline

Definition at line 276 of file RoutingModel.cs.

◆ AddRequiredTypeAlternativesWhenAddingType()

void AddRequiredTypeAlternativesWhenAddingType ( int  dependent_type,
SWIGTYPE_p_absl__flat_hash_setT_int_t  required_type_alternatives 
)
inline

Definition at line 317 of file RoutingModel.cs.

◆ AddRequiredTypeAlternativesWhenRemovingType()

void AddRequiredTypeAlternativesWhenRemovingType ( int  dependent_type,
SWIGTYPE_p_absl__flat_hash_setT_int_t  required_type_alternatives 
)
inline

Definition at line 322 of file RoutingModel.cs.

◆ AddSearchMonitor()

void AddSearchMonitor ( SearchMonitor  monitor)
inline

Definition at line 422 of file RoutingModel.cs.

◆ AddSoftSameVehicleConstraint()

void AddSoftSameVehicleConstraint ( long[]  indices,
long  cost 
)
inline

Definition at line 259 of file RoutingModel.cs.

◆ AddToAssignment()

void AddToAssignment ( IntVar  var)
inline

Definition at line 581 of file RoutingModel.cs.

◆ AddVariableMaximizedByFinalizer()

void AddVariableMaximizedByFinalizer ( IntVar  var)
inline

Definition at line 434 of file RoutingModel.cs.

◆ AddVariableMinimizedByFinalizer()

void AddVariableMinimizedByFinalizer ( IntVar  var)
inline

Definition at line 430 of file RoutingModel.cs.

◆ AddVariableTargetToFinalizer()

void AddVariableTargetToFinalizer ( IntVar  var,
long  target 
)
inline

Definition at line 442 of file RoutingModel.cs.

◆ AddVectorDimension()

bool AddVectorDimension ( long[]  values,
long  capacity,
bool  fix_start_cumul_to_zero,
string  name 
)
inline

Definition at line 162 of file RoutingModel.cs.

◆ AddWeightedVariableMinimizedByFinalizer()

void AddWeightedVariableMinimizedByFinalizer ( IntVar  var,
long  cost 
)
inline

Definition at line 438 of file RoutingModel.cs.

◆ ApplyLocks()

IntVar ApplyLocks ( long[]  locks)
inline

Definition at line 492 of file RoutingModel.cs.

◆ ApplyLocksToAllVehicles()

bool ApplyLocksToAllVehicles ( long  locks[][],
bool  close_routes 
)
inline

Definition at line 498 of file RoutingModel.cs.

◆ ArcIsMoreConstrainedThanArc()

bool ArcIsMoreConstrainedThanArc ( long  from,
long  to1,
long  to2 
)
inline

Definition at line 735 of file RoutingModel.cs.

◆ AreEmptyRouteCostsConsideredForVehicle()

bool AreEmptyRouteCostsConsideredForVehicle ( int  vehicle)
inline

Definition at line 409 of file RoutingModel.cs.

◆ AssignmentToRoutes()

void AssignmentToRoutes ( Assignment  assignment,
long  routes[][] 
)
inline

Definition at line 558 of file RoutingModel.cs.

◆ CheckLimit()

bool CheckLimit ( )
inline

Definition at line 752 of file RoutingModel.cs.

◆ CloseModel()

void CloseModel ( )
inline

Definition at line 446 of file RoutingModel.cs.

◆ CloseModelWithParameters()

void CloseModelWithParameters ( Google.OrTools.ConstraintSolver.RoutingSearchParameters  search_parameters)
inline

Definition at line 450 of file RoutingModel.cs.

◆ CompactAndCheckAssignment()

Assignment CompactAndCheckAssignment ( Assignment  assignment)
inline

Definition at line 574 of file RoutingModel.cs.

◆ CompactAssignment()

Assignment CompactAssignment ( Assignment  assignment)
inline

Definition at line 567 of file RoutingModel.cs.

◆ ComputeLowerBound()

long ComputeLowerBound ( )
inline

Definition at line 482 of file RoutingModel.cs.

◆ ConsiderEmptyRouteCostsForVehicle()

void ConsiderEmptyRouteCostsForVehicle ( bool  consider_costs,
int  vehicle 
)
inline

Definition at line 405 of file RoutingModel.cs.

◆ CostsAreHomogeneousAcrossVehicles()

bool CostsAreHomogeneousAcrossVehicles ( )
inline

Definition at line 675 of file RoutingModel.cs.

◆ CostVar()

IntVar CostVar ( )
inline

Definition at line 664 of file RoutingModel.cs.

◆ DebugOutputAssignment()

string DebugOutputAssignment ( Assignment  solution_assignment,
string  dimension_to_print 
)
inline

Definition at line 740 of file RoutingModel.cs.

◆ Dispose() [1/2]

void Dispose ( )
inline

Definition at line 35 of file RoutingModel.cs.

◆ Dispose() [2/2]

virtual void Dispose ( bool  disposing)
inlineprotectedvirtual

Definition at line 40 of file RoutingModel.cs.

◆ End()

long End ( int  vehicle)
inline

Definition at line 598 of file RoutingModel.cs.

◆ GetAmortizedLinearCostFactorOfVehicles()

long [] GetAmortizedLinearCostFactorOfVehicles ( )
inline

Definition at line 381 of file RoutingModel.cs.

◆ GetAmortizedQuadraticCostFactorOfVehicles()

long [] GetAmortizedQuadraticCostFactorOfVehicles ( )
inline

Definition at line 393 of file RoutingModel.cs.

◆ GetArcCostForClass()

long GetArcCostForClass ( long  from_index,
long  to_index,
long  cost_class_index 
)
inline

Definition at line 690 of file RoutingModel.cs.

◆ GetArcCostForFirstSolution()

long GetArcCostForFirstSolution ( long  from_index,
long  to_index 
)
inline

Definition at line 685 of file RoutingModel.cs.

◆ GetArcCostForVehicle()

long GetArcCostForVehicle ( long  from_index,
long  to_index,
long  vehicle 
)
inline

Definition at line 670 of file RoutingModel.cs.

◆ GetCostClassesCount()

int GetCostClassesCount ( )
inline

Definition at line 704 of file RoutingModel.cs.

◆ GetCostClassIndexOfVehicle()

int GetCostClassIndexOfVehicle ( long  vehicle)
inline

Definition at line 695 of file RoutingModel.cs.

◆ GetDepot()

long GetDepot ( )
inline

Definition at line 347 of file RoutingModel.cs.

◆ GetDimensionOrDie()

RoutingDimension GetDimensionOrDie ( string  dimension_name)
inline

Definition at line 181 of file RoutingModel.cs.

◆ GetDisjunctionIndices() [1/2]

long [] GetDisjunctionIndices ( int  index)
inline

Definition at line 228 of file RoutingModel.cs.

◆ GetDisjunctionIndices() [2/2]

int [] GetDisjunctionIndices ( long  index)
inline

Definition at line 216 of file RoutingModel.cs.

◆ GetDisjunctionMaxCardinality()

long GetDisjunctionMaxCardinality ( int  index)
inline

Definition at line 245 of file RoutingModel.cs.

◆ GetDisjunctionPenalty()

long GetDisjunctionPenalty ( int  index)
inline

Definition at line 240 of file RoutingModel.cs.

◆ GetFixedCostOfVehicle()

long GetFixedCostOfVehicle ( int  vehicle)
inline

Definition at line 368 of file RoutingModel.cs.

◆ GetHomogeneousCost()

long GetHomogeneousCost ( long  from_index,
long  to_index 
)
inline

Definition at line 680 of file RoutingModel.cs.

◆ GetMutableDimension()

RoutingDimension GetMutableDimension ( string  dimension_name)
inline

Definition at line 187 of file RoutingModel.cs.

◆ GetNonZeroCostClassesCount()

int GetNonZeroCostClassesCount ( )
inline

Definition at line 709 of file RoutingModel.cs.

◆ GetNumberOfDecisionsInFirstSolution()

long GetNumberOfDecisionsInFirstSolution ( Google.OrTools.ConstraintSolver.RoutingSearchParameters  search_parameters)
inline

Definition at line 772 of file RoutingModel.cs.

◆ GetNumberOfDisjunctions()

int GetNumberOfDisjunctions ( )
inline

Definition at line 250 of file RoutingModel.cs.

◆ GetNumberOfRejectsInFirstSolution()

long GetNumberOfRejectsInFirstSolution ( Google.OrTools.ConstraintSolver.RoutingSearchParameters  search_parameters)
inline

Definition at line 777 of file RoutingModel.cs.

◆ GetNumberOfVisitTypes()

int GetNumberOfVisitTypes ( )
inline

Definition at line 312 of file RoutingModel.cs.

◆ GetNumOfSingletonNodes()

int GetNumOfSingletonNodes ( )
inline

Definition at line 293 of file RoutingModel.cs.

◆ GetPickupAndDeliveryPolicyOfVehicle()

int GetPickupAndDeliveryPolicyOfVehicle ( int  vehicle)
inline

Definition at line 288 of file RoutingModel.cs.

◆ GetPrimaryConstrainedDimension()

string GetPrimaryConstrainedDimension ( )
inline

Definition at line 199 of file RoutingModel.cs.

◆ GetRequiredTypeAlternativesWhenAddingType()

SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t GetRequiredTypeAlternativesWhenAddingType ( int  type)
inline

Definition at line 327 of file RoutingModel.cs.

◆ GetRequiredTypeAlternativesWhenRemovingType()

SWIGTYPE_p_std__vectorT_absl__flat_hash_setT_int_t_t GetRequiredTypeAlternativesWhenRemovingType ( int  type)
inline

Definition at line 332 of file RoutingModel.cs.

◆ GetSameVehicleIndicesOfIndex()

int [] GetSameVehicleIndicesOfIndex ( int  node)
inline

Definition at line 723 of file RoutingModel.cs.

◆ GetStatus()

int GetStatus ( )
inline

Definition at line 487 of file RoutingModel.cs.

◆ GetVehicleClassesCount()

int GetVehicleClassesCount ( )
inline

Definition at line 718 of file RoutingModel.cs.

◆ GetVehicleClassIndexOfVehicle()

int GetVehicleClassIndexOfVehicle ( long  vehicle)
inline

Definition at line 714 of file RoutingModel.cs.

◆ GetVisitType()

int GetVisitType ( long  index)
inline

Definition at line 302 of file RoutingModel.cs.

◆ GetVisitTypePolicy()

int GetVisitTypePolicy ( long  index)
inline

Definition at line 307 of file RoutingModel.cs.

◆ HasDimension()

bool HasDimension ( string  dimension_name)
inline

Definition at line 175 of file RoutingModel.cs.

◆ HasVehicleWithCostClassIndex()

bool HasVehicleWithCostClassIndex ( int  cost_class_index)
inline

Definition at line 699 of file RoutingModel.cs.

◆ IgnoreDisjunctionsAlreadyForcedToZero()

void IgnoreDisjunctionsAlreadyForcedToZero ( )
inline

Definition at line 255 of file RoutingModel.cs.

◆ IsEnd()

bool IsEnd ( long  index)
inline

Definition at line 608 of file RoutingModel.cs.

◆ IsMatchingModel()

bool IsMatchingModel ( )
inline

Definition at line 782 of file RoutingModel.cs.

◆ IsStart()

bool IsStart ( long  index)
inline

Definition at line 603 of file RoutingModel.cs.

◆ IsVehicleAllowedForIndex()

bool IsVehicleAllowedForIndex ( int  vehicle,
long  index 
)
inline

Definition at line 267 of file RoutingModel.cs.

◆ IsVehicleUsed()

bool IsVehicleUsed ( Assignment  assignment,
int  vehicle 
)
inline

Definition at line 624 of file RoutingModel.cs.

◆ MakeGuidedSlackFinalizer()

DecisionBuilder MakeGuidedSlackFinalizer ( RoutingDimension  dimension,
LongToLong  initializer 
)
inline

Definition at line 787 of file RoutingModel.cs.

◆ MakePathSpansAndTotalSlacks()

Constraint MakePathSpansAndTotalSlacks ( RoutingDimension  dimension,
IntVarVector  spans,
IntVarVector  total_slacks 
)
inline

Definition at line 168 of file RoutingModel.cs.

◆ MakeSelfDependentDimensionFinalizer()

DecisionBuilder MakeSelfDependentDimensionFinalizer ( RoutingDimension  dimension)
inline

Definition at line 793 of file RoutingModel.cs.

◆ MutablePreAssignment()

Assignment MutablePreAssignment ( )
inline

Definition at line 513 of file RoutingModel.cs.

◆ Next()

long Next ( Assignment  assignment,
long  index 
)
inline

Definition at line 618 of file RoutingModel.cs.

◆ Nexts()

IntVarVector Nexts ( )
inline

Definition at line 630 of file RoutingModel.cs.

◆ NextVar()

IntVar NextVar ( long  index)
inline

Definition at line 640 of file RoutingModel.cs.

◆ Nodes()

int Nodes ( )
inline

Definition at line 757 of file RoutingModel.cs.

◆ PreAssignment()

Assignment PreAssignment ( )
inline

Definition at line 507 of file RoutingModel.cs.

◆ ReadAssignment()

Assignment ReadAssignment ( string  file_name)
inline

Definition at line 525 of file RoutingModel.cs.

◆ ReadAssignmentFromRoutes()

Assignment ReadAssignmentFromRoutes ( long  routes[][],
bool  ignore_inactive_indices 
)
inline

Definition at line 539 of file RoutingModel.cs.

◆ RegisterPositiveTransitCallback()

int RegisterPositiveTransitCallback ( LongLongToLong  callback)
inline

Definition at line 121 of file RoutingModel.cs.

◆ RegisterPositiveUnaryTransitCallback()

int RegisterPositiveUnaryTransitCallback ( LongToLong  callback)
inline

Definition at line 111 of file RoutingModel.cs.

◆ RegisterTransitCallback()

int RegisterTransitCallback ( LongLongToLong  callback)
inline

Definition at line 116 of file RoutingModel.cs.

◆ RegisterUnaryTransitCallback()

int RegisterUnaryTransitCallback ( LongToLong  callback)
inline

Definition at line 106 of file RoutingModel.cs.

◆ RestoreAssignment()

Assignment RestoreAssignment ( Assignment  solution)
inline

Definition at line 532 of file RoutingModel.cs.

◆ RoutesToAssignment()

bool RoutesToAssignment ( long  routes[][],
bool  ignore_inactive_indices,
bool  close_routes,
Assignment  assignment 
)
inline

Definition at line 549 of file RoutingModel.cs.

◆ SetAllowedVehiclesForIndex()

void SetAllowedVehiclesForIndex ( int[]  vehicles,
long  index 
)
inline

Definition at line 263 of file RoutingModel.cs.

◆ SetAmortizedCostFactorsOfAllVehicles()

void SetAmortizedCostFactorsOfAllVehicles ( long  linear_cost_factor,
long  quadratic_cost_factor 
)
inline

Definition at line 373 of file RoutingModel.cs.

◆ SetAmortizedCostFactorsOfVehicle()

void SetAmortizedCostFactorsOfVehicle ( long  linear_cost_factor,
long  quadratic_cost_factor,
int  vehicle 
)
inline

Definition at line 377 of file RoutingModel.cs.

◆ SetArcCostEvaluatorOfAllVehicles()

void SetArcCostEvaluatorOfAllVehicles ( int  evaluator_index)
inline

Definition at line 352 of file RoutingModel.cs.

◆ SetArcCostEvaluatorOfVehicle()

void SetArcCostEvaluatorOfVehicle ( int  evaluator_index,
int  vehicle 
)
inline

Definition at line 356 of file RoutingModel.cs.

◆ SetAssignmentFromOtherModelAssignment()

void SetAssignmentFromOtherModelAssignment ( Assignment  target_assignment,
RoutingModel  source_model,
Assignment  source_assignment 
)
inline

Definition at line 478 of file RoutingModel.cs.

◆ SetFirstSolutionEvaluator()

void SetFirstSolutionEvaluator ( LongLongToLong  evaluator)
inline

Definition at line 414 of file RoutingModel.cs.

◆ SetFixedCostOfAllVehicles()

void SetFixedCostOfAllVehicles ( long  cost)
inline

Definition at line 360 of file RoutingModel.cs.

◆ SetFixedCostOfVehicle()

void SetFixedCostOfVehicle ( long  cost,
int  vehicle 
)
inline

Definition at line 364 of file RoutingModel.cs.

◆ SetPickupAndDeliveryPolicyOfAllVehicles()

void SetPickupAndDeliveryPolicyOfAllVehicles ( int  policy)
inline

Definition at line 280 of file RoutingModel.cs.

◆ SetPickupAndDeliveryPolicyOfVehicle()

void SetPickupAndDeliveryPolicyOfVehicle ( int  policy,
int  vehicle 
)
inline

Definition at line 284 of file RoutingModel.cs.

◆ SetPrimaryConstrainedDimension()

void SetPrimaryConstrainedDimension ( string  dimension_name)
inline

Definition at line 194 of file RoutingModel.cs.

◆ SetVisitType()

void SetVisitType ( long  index,
int  type,
int  type_policy 
)
inline

Definition at line 298 of file RoutingModel.cs.

◆ Size()

long Size ( )
inline

Definition at line 767 of file RoutingModel.cs.

◆ Solve() [1/2]

Assignment Solve ( )
inline

Definition at line 460 of file RoutingModel.cs.

◆ Solve() [2/2]

Assignment Solve ( Assignment  assignment)
inline

Definition at line 454 of file RoutingModel.cs.

◆ SolveFromAssignmentWithParameters()

Assignment SolveFromAssignmentWithParameters ( Assignment  assignment,
Google.OrTools.ConstraintSolver.RoutingSearchParameters  search_parameters 
)
inline

Definition at line 472 of file RoutingModel.cs.

◆ solver()

Solver solver ( )
inline

Definition at line 746 of file RoutingModel.cs.

◆ SolveWithParameters()

Assignment SolveWithParameters ( Google.OrTools.ConstraintSolver.RoutingSearchParameters  search_parameters)
inline

Definition at line 466 of file RoutingModel.cs.

◆ Start()

long Start ( int  vehicle)
inline

Definition at line 593 of file RoutingModel.cs.

◆ UnperformedPenalty()

long UnperformedPenalty ( long  var_index)
inline

Definition at line 337 of file RoutingModel.cs.

◆ UnperformedPenaltyOrValue()

long UnperformedPenaltyOrValue ( long  default_value,
long  var_index 
)
inline

Definition at line 342 of file RoutingModel.cs.

◆ VehicleCostsConsideredVar()

IntVar VehicleCostsConsideredVar ( int  vehicle)
inline

Definition at line 652 of file RoutingModel.cs.

◆ VehicleIndex()

int VehicleIndex ( int  index)
inline

Definition at line 613 of file RoutingModel.cs.

◆ Vehicles()

int Vehicles ( )
inline

Definition at line 762 of file RoutingModel.cs.

◆ VehicleVar()

IntVar VehicleVar ( long  index)
inline

Definition at line 658 of file RoutingModel.cs.

◆ VehicleVars()

IntVarVector VehicleVars ( )
inline

Definition at line 635 of file RoutingModel.cs.

◆ WriteAssignment()

bool WriteAssignment ( string  file_name)
inline

Definition at line 519 of file RoutingModel.cs.

Member Data Documentation

◆ ADDED_TYPE_REMOVED_FROM_VEHICLE

Definition at line 813 of file RoutingModel.cs.

◆ PICKUP_AND_DELIVERY_FIFO

Definition at line 809 of file RoutingModel.cs.

◆ PICKUP_AND_DELIVERY_LIFO

Definition at line 808 of file RoutingModel.cs.

◆ PICKUP_AND_DELIVERY_NO_ORDER

Definition at line 807 of file RoutingModel.cs.

◆ ROUTING_FAIL

Definition at line 802 of file RoutingModel.cs.

◆ ROUTING_FAIL_TIMEOUT

Definition at line 803 of file RoutingModel.cs.

◆ ROUTING_INVALID

Definition at line 804 of file RoutingModel.cs.

◆ ROUTING_NOT_SOLVED

Definition at line 800 of file RoutingModel.cs.

◆ ROUTING_SUCCESS

Definition at line 801 of file RoutingModel.cs.

◆ swigCMemOwn

bool swigCMemOwn
protected

Definition at line 20 of file RoutingModel.cs.

◆ TYPE_ADDED_TO_VEHICLE

Definition at line 812 of file RoutingModel.cs.

◆ TYPE_ON_VEHICLE_UP_TO_VISIT

Definition at line 814 of file RoutingModel.cs.

◆ TYPE_SIMULTANEOUSLY_ADDED_AND_REMOVED

Definition at line 815 of file RoutingModel.cs.

Property Documentation

◆ kNoDimension

int kNoDimension
staticget

Definition at line 91 of file RoutingModel.cs.

◆ kNoDisjunction

int kNoDisjunction
staticget

Definition at line 84 of file RoutingModel.cs.

◆ kNoPenalty

long kNoPenalty
staticget

Definition at line 77 of file RoutingModel.cs.


The documentation for this class was generated from the following file: