OR-Tools  9.6
LocationContainer

Detailed Description

Definition at line 37 of file cvrptw_lib.h.

Public Member Functions

 LocationContainer (int64_t speed, bool use_deterministic_seed)
 
void AddLocation (int64_t x, int64_t y)
 
void AddRandomLocation (int64_t x_max, int64_t y_max)
 
void AddRandomLocation (int64_t x_max, int64_t y_max, int duplicates)
 
int64_t ManhattanDistance (RoutingIndexManager::NodeIndex from, RoutingIndexManager::NodeIndex to) const
 
int64_t NegManhattanDistance (RoutingIndexManager::NodeIndex from, RoutingIndexManager::NodeIndex to) const
 
int64_t ManhattanTime (RoutingIndexManager::NodeIndex from, RoutingIndexManager::NodeIndex to) const
 
bool SameLocation (RoutingIndexManager::NodeIndex node1, RoutingIndexManager::NodeIndex node2) const
 
int64_t SameLocationFromIndex (int64_t node1, int64_t node2) const
 

Constructor & Destructor Documentation

◆ LocationContainer()

LocationContainer ( int64_t  speed,
bool  use_deterministic_seed 
)

Definition at line 44 of file cvrptw_lib.cc.

Member Function Documentation

◆ AddLocation()

void AddLocation ( int64_t  x,
int64_t  y 
)
inline

Definition at line 40 of file cvrptw_lib.h.

◆ AddRandomLocation() [1/2]

void AddRandomLocation ( int64_t  x_max,
int64_t  y_max 
)

Definition at line 49 of file cvrptw_lib.cc.

◆ AddRandomLocation() [2/2]

void AddRandomLocation ( int64_t  x_max,
int64_t  y_max,
int  duplicates 
)

Definition at line 53 of file cvrptw_lib.cc.

◆ ManhattanDistance()

int64_t ManhattanDistance ( RoutingIndexManager::NodeIndex  from,
RoutingIndexManager::NodeIndex  to 
) const

Definition at line 62 of file cvrptw_lib.cc.

◆ ManhattanTime()

int64_t ManhattanTime ( RoutingIndexManager::NodeIndex  from,
RoutingIndexManager::NodeIndex  to 
) const

Definition at line 72 of file cvrptw_lib.cc.

◆ NegManhattanDistance()

int64_t NegManhattanDistance ( RoutingIndexManager::NodeIndex  from,
RoutingIndexManager::NodeIndex  to 
) const

Definition at line 67 of file cvrptw_lib.cc.

◆ SameLocation()

bool SameLocation ( RoutingIndexManager::NodeIndex  node1,
RoutingIndexManager::NodeIndex  node2 
) const

Definition at line 76 of file cvrptw_lib.cc.

◆ SameLocationFromIndex()

int64_t SameLocationFromIndex ( int64_t  node1,
int64_t  node2 
) const

Definition at line 82 of file cvrptw_lib.cc.


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