Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Generates insertion positions respecting structural constraints. More...
#include <routing_search.h>
Public Member Functions | |
InsertionSequenceGenerator () | |
void | AppendPickupDeliveryMultitourInsertions (int pickup, int delivery, int vehicle, const std::vector< int > &path, const std::vector< bool > &path_node_is_pickup, const std::vector< bool > &path_node_is_delivery, InsertionSequenceContainer &insertions) |
Generates insertion positions respecting structural constraints.
Definition at line 1011 of file routing_search.h.
|
inline |
Definition at line 1013 of file routing_search.h.
void operations_research::InsertionSequenceGenerator::AppendPickupDeliveryMultitourInsertions | ( | int | pickup, |
int | delivery, | ||
int | vehicle, | ||
const std::vector< int > & | path, | ||
const std::vector< bool > & | path_node_is_pickup, | ||
const std::vector< bool > & | path_node_is_delivery, | ||
InsertionSequenceContainer & | insertions ) |
Generates insertions for a pickup and delivery pair in a multitour path:
Find insertion positions for the input pair, pickup P and delivery D.
Avoids duplicate insertions. If next_increase_[pos] - 1 == pos:
Downwards inflexion: vehicle is at its max. Avoids duplicate insertions, when next_decrease_[pos] - 1 == pos:
Definition at line 2155 of file routing_search.cc.