Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::SavingsFilteredHeuristic::SavingsContainer< Saving > Class Template Reference

Detailed Description

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

Definition at line 3836 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()

template<typename Saving>
operations_research::SavingsFilteredHeuristic::SavingsContainer< Saving >::SavingsContainer ( const SavingsFilteredHeuristic * savings_db,
int vehicle_types )
inlineexplicit

Definition at line 3838 of file routing_search.cc.

Member Function Documentation

◆ AddNewSaving()

template<typename Saving>
void operations_research::SavingsFilteredHeuristic::SavingsContainer< Saving >::AddNewSaving ( const Saving & saving,
int64_t total_cost,
int64_t before_node,
int64_t after_node,
int vehicle_type )
inline

Definition at line 3876 of file routing_search.cc.

◆ GetSaving()

Definition at line 3943 of file routing_search.cc.

◆ GetSortedSavingsForVehicleType()

template<typename Saving>
const std::vector< Saving > & operations_research::SavingsFilteredHeuristic::SavingsContainer< Saving >::GetSortedSavingsForVehicleType ( int type)
inline

Definition at line 4008 of file routing_search.cc.

◆ HasSaving()

template<typename Saving>
bool operations_research::SavingsFilteredHeuristic::SavingsContainer< Saving >::HasSaving ( )
inline

Definition at line 3938 of file routing_search.cc.

◆ InitializeContainer()

template<typename Saving>
void operations_research::SavingsFilteredHeuristic::SavingsContainer< Saving >::InitializeContainer ( int64_t size,
int64_t saving_neighbors )
inline

Definition at line 3848 of file routing_search.cc.

◆ ReinjectSkippedSavingsEndingAt()

template<typename Saving>
void operations_research::SavingsFilteredHeuristic::SavingsContainer< Saving >::ReinjectSkippedSavingsEndingAt ( int64_t node)
inline

Definition at line 4019 of file routing_search.cc.

◆ ReinjectSkippedSavingsStartingAt()

template<typename Saving>
void operations_research::SavingsFilteredHeuristic::SavingsContainer< Saving >::ReinjectSkippedSavingsStartingAt ( int64_t node)
inline

Definition at line 4014 of file routing_search.cc.

◆ Sort()

Definition at line 3885 of file routing_search.cc.

◆ Update()

template<typename Saving>
void operations_research::SavingsFilteredHeuristic::SavingsContainer< Saving >::Update ( bool update_best_saving,
int type = -1 )
inline

Definition at line 3979 of file routing_search.cc.

◆ UpdateWithType()

template<typename Saving>
void operations_research::SavingsFilteredHeuristic::SavingsContainer< Saving >::UpdateWithType ( int type)
inline

Definition at line 4003 of file routing_search.cc.


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