A CheapestAdditionFilteredHeuristic where the notion of 'cheapest arc' comes from an arc comparator.
Definition at line 1024 of file routing_search.h.
◆ ComparatorCheapestAdditionFilteredHeuristic()
◆ ~ComparatorCheapestAdditionFilteredHeuristic()
◆ BuildSolution()
Builds a solution.
Returns the resulting assignment if a solution was found, and nullptr otherwise.
Definition at line 303 of file routing_search.cc.
◆ BuildSolutionFromRoutes()
| const Assignment * BuildSolutionFromRoutes |
( |
const std::function< int64_t(int64_t)> & |
next_accessor | ) |
|
|
inherited |
Builds a solution starting from the routes formed by the next accessor.
Definition at line 316 of file routing_search.cc.
◆ BuildSolutionInternal()
| bool BuildSolutionInternal |
( |
| ) |
|
|
overridevirtualinherited |
◆ Contains()
| bool Contains |
( |
int64_t |
index | ) |
const |
|
inlineprotectedinherited |
Returns true if the variable of index 'index' is in the current solution.
Definition at line 226 of file routing_search.h.
◆ DebugString()
| std::string DebugString |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Evaluate()
| std::optional< int64_t > Evaluate |
( |
bool |
commit | ) |
|
|
protectedinherited |
Evaluates the modifications to the current solution.
If these modifications are "filter-feasible" returns their corresponding cost computed by filters. If 'commit' is true, the modifications are committed to the current solution. In any case all modifications to the internal delta are cleared before returning.
Definition at line 353 of file routing_search.cc.
◆ GetEndChainStart()
| int GetEndChainStart |
( |
int |
vehicle | ) |
const |
|
inlineinherited |
Returns the start of the end chain of vehicle,.
Definition at line 282 of file routing_search.h.
◆ GetStartChainEnd()
| int GetStartChainEnd |
( |
int |
vehicle | ) |
const |
|
inlineinherited |
Returns the end of the start chain of vehicle,.
Definition at line 280 of file routing_search.h.
◆ HasSecondaryVars()
| bool HasSecondaryVars |
( |
| ) |
const |
|
inlineprotectedinherited |
Returns true if there are secondary variables.
Definition at line 240 of file routing_search.h.
◆ Initialize()
| virtual void Initialize |
( |
| ) |
|
|
inlineprotectedvirtualinherited |
◆ IsSecondaryVar()
| bool IsSecondaryVar |
( |
int64_t |
index | ) |
const |
|
inlineprotectedinherited |
Returns true if 'index' is a secondary variable index.
Definition at line 242 of file routing_search.h.
◆ MakeDisjunctionNodesUnperformed()
| void MakeDisjunctionNodesUnperformed |
( |
int64_t |
node | ) |
|
|
inherited |
Make nodes in the same disjunction as 'node' unperformed.
'node' is a variable index corresponding to a node.
Definition at line 477 of file routing_search.cc.
◆ MakePartiallyPerformedPairsUnperformed()
| void MakePartiallyPerformedPairsUnperformed |
( |
| ) |
|
|
inherited |
Make all partially performed pickup and delivery pairs unperformed.
A pair is partially unperformed if one element of the pair has one of its alternatives performed in the solution and the other has no alternatives in the solution or none performed.
Definition at line 499 of file routing_search.cc.
◆ MakeUnassignedNodesUnperformed()
| bool MakeUnassignedNodesUnperformed |
( |
| ) |
|
|
inherited |
Make all unassigned nodes unperformed, always returns true.
Definition at line 486 of file routing_search.cc.
◆ model()
◆ number_of_decisions()
| int64_t number_of_decisions |
( |
| ) |
const |
|
inlineinherited |
Returns statistics on search, number of decisions sent to filters, number of decisions rejected by filters.
Definition at line 185 of file routing_search.h.
◆ number_of_rejects()
| int64_t number_of_rejects |
( |
| ) |
const |
|
inlineinherited |
◆ ResetSolution()
◆ ResetVehicleIndices()
| virtual void ResetVehicleIndices |
( |
| ) |
|
|
inlineprotectedvirtualinherited |
◆ SecondaryVarIndex()
| int64_t SecondaryVarIndex |
( |
int64_t |
index | ) |
const |
|
inlineprotectedinherited |
◆ SetValue()
| void SetValue |
( |
int64_t |
index, |
|
|
int64_t |
value |
|
) |
| |
|
inlineprotectedinherited |
Modifies the current solution by setting the variable of index 'index' to value 'value'.
Definition at line 211 of file routing_search.h.
◆ SetVehicleIndex()
| virtual void SetVehicleIndex |
( |
int64_t |
, |
|
|
int |
|
|
) |
| |
|
inlineprotectedvirtualinherited |
◆ Size()
Returns the number of variables the decision builder is trying to instantiate.
Definition at line 231 of file routing_search.h.
◆ StopSearch()
|
|
inlineoverrideprotectedvirtualinherited |
◆ SynchronizeFilters()
| void SynchronizeFilters |
( |
| ) |
|
|
protectedinherited |
Synchronizes filters with an assignment (the current solution).
Definition at line 396 of file routing_search.cc.
◆ Value()
| int64_t Value |
( |
int64_t |
index | ) |
const |
|
inlineprotectedinherited |
Returns the value of the variable of index 'index' in the last committed solution.
Definition at line 222 of file routing_search.h.
◆ Var()
| IntVar* Var |
( |
int64_t |
index | ) |
const |
|
inlineprotectedinherited |
◆ VehicleIsEmpty()
| bool VehicleIsEmpty |
( |
int |
vehicle | ) |
const |
|
inlineprotectedinherited |
◆ assignment_
The documentation for this class was generated from the following files: