OR-Tools  8.2
SavingsFilteredHeuristic::SavingsContainer< Saving >

Detailed Description

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

Definition at line 5022 of file routing_search.cc.

Public Member Functions

 SavingsContainer (const SavingsFilteredHeuristic *savings_db, int vehicle_types)
 
void InitializeContainer (int64 size, int64 saving_neighbors)
 
void AddNewSaving (const Saving &saving, int64 total_cost, int64 before_node, int64 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 node)
 
void ReinjectSkippedSavingsEndingAt (int64 node)
 

Constructor & Destructor Documentation

◆ SavingsContainer()

SavingsContainer ( const SavingsFilteredHeuristic savings_db,
int  vehicle_types 
)
inlineexplicit

Definition at line 5024 of file routing_search.cc.

Member Function Documentation

◆ AddNewSaving()

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

Definition at line 5062 of file routing_search.cc.

◆ GetSaving()

Saving GetSaving ( )
inline

Definition at line 5129 of file routing_search.cc.

◆ GetSortedSavingsForVehicleType()

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

Definition at line 5194 of file routing_search.cc.

◆ HasSaving()

bool HasSaving ( )
inline

Definition at line 5124 of file routing_search.cc.

◆ InitializeContainer()

void InitializeContainer ( int64  size,
int64  saving_neighbors 
)
inline

Definition at line 5034 of file routing_search.cc.

◆ ReinjectSkippedSavingsEndingAt()

void ReinjectSkippedSavingsEndingAt ( int64  node)
inline

Definition at line 5205 of file routing_search.cc.

◆ ReinjectSkippedSavingsStartingAt()

void ReinjectSkippedSavingsStartingAt ( int64  node)
inline

Definition at line 5200 of file routing_search.cc.

◆ Sort()

void Sort ( )
inline

Definition at line 5071 of file routing_search.cc.

◆ Update()

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

Definition at line 5165 of file routing_search.cc.

◆ UpdateWithType()

void UpdateWithType ( int  type)
inline

Definition at line 5189 of file routing_search.cc.


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