OR-Tools  9.6
SavingsFilteredHeuristic::SavingsContainer< Saving >

Detailed Description

template<typename Saving>
class operations_research::SavingsFilteredHeuristic::SavingsContainer< Saving >

Definition at line 2867 of file routing_search.cc.

Public Member Functions

 SavingsContainer (const SavingsFilteredHeuristic *savings_db, int vehicle_types)
 
void InitializeContainer (int64_t size, int64_t saving_neighbors)
 
void AddNewSaving (const Saving &saving, int64_t total_cost, int64_t before_node, int64_t after_node, int vehicle_type)
 
void Sort ()
 
bool HasSaving ()
 
Saving GetSaving ()
 
void Update (bool update_best_saving, int type=-1)
 
void UpdateWithType (int type)
 
const std::vector< Saving > & GetSortedSavingsForVehicleType (int type)
 
void ReinjectSkippedSavingsStartingAt (int64_t node)
 
void ReinjectSkippedSavingsEndingAt (int64_t node)
 

Constructor & Destructor Documentation

◆ SavingsContainer()

SavingsContainer ( const SavingsFilteredHeuristic savings_db,
int  vehicle_types 
)
inlineexplicit

Definition at line 2869 of file routing_search.cc.

Member Function Documentation

◆ AddNewSaving()

void AddNewSaving ( const Saving saving,
int64_t  total_cost,
int64_t  before_node,
int64_t  after_node,
int  vehicle_type 
)
inline

Definition at line 2907 of file routing_search.cc.

◆ GetSaving()

Saving GetSaving ( )
inline

Definition at line 2974 of file routing_search.cc.

◆ GetSortedSavingsForVehicleType()

const std::vector<Saving>& GetSortedSavingsForVehicleType ( int  type)
inline

Definition at line 3039 of file routing_search.cc.

◆ HasSaving()

bool HasSaving ( )
inline

Definition at line 2969 of file routing_search.cc.

◆ InitializeContainer()

void InitializeContainer ( int64_t  size,
int64_t  saving_neighbors 
)
inline

Definition at line 2879 of file routing_search.cc.

◆ ReinjectSkippedSavingsEndingAt()

void ReinjectSkippedSavingsEndingAt ( int64_t  node)
inline

Definition at line 3050 of file routing_search.cc.

◆ ReinjectSkippedSavingsStartingAt()

void ReinjectSkippedSavingsStartingAt ( int64_t  node)
inline

Definition at line 3045 of file routing_search.cc.

◆ Sort()

void Sort ( )
inline

Definition at line 2916 of file routing_search.cc.

◆ Update()

void Update ( bool  update_best_saving,
int  type = -1 
)
inline

Definition at line 3010 of file routing_search.cc.

◆ UpdateWithType()

void UpdateWithType ( int  type)
inline

Definition at line 3034 of file routing_search.cc.


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