Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy Class Referencesealed

Ruin strategy that removes a number of customers by performing a random walk on the underlying routing solution. More precisely, starting from a randomly selected seed visit, the walk is extended by either moving within the same route or by jumping to a visit served by a different neighboring route. Every active visit encountered along this random walk is made unperformed. More...

Inheritance diagram for Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy:

Public Member Functions

 RandomWalkRuinStrategy ()
 
 RandomWalkRuinStrategy (RandomWalkRuinStrategy other)
 
RandomWalkRuinStrategy Clone ()
 
void ClearNumRemovedVisits ()
 Clears the value of the "num_removed_visits" field.
 
override bool Equals (object other)
 
bool Equals (RandomWalkRuinStrategy other)
 
override int GetHashCode ()
 
override string ToString ()
 
void WriteTo (pb::CodedOutputStream output)
 
int CalculateSize ()
 
void MergeFrom (RandomWalkRuinStrategy other)
 
void MergeFrom (pb::CodedInputStream input)
 

Static Public Attributes

const int NumRemovedVisitsFieldNumber = 7
 Field number for the "num_removed_visits" field.
 

Properties

static pb::MessageParser< RandomWalkRuinStrategyParser [get]
 
static pbr::MessageDescriptor Descriptor [get]
 
uint NumRemovedVisits [get, set]
 Number of visits removed during a ruin application defined on visits.
 
bool HasNumRemovedVisits [get]
 Gets whether the "num_removed_visits" field is set.
 

Detailed Description

Ruin strategy that removes a number of customers by performing a random walk on the underlying routing solution. More precisely, starting from a randomly selected seed visit, the walk is extended by either moving within the same route or by jumping to a visit served by a different neighboring route. Every active visit encountered along this random walk is made unperformed.

Definition at line 330 of file RoutingIls.pb.cs.

Constructor & Destructor Documentation

◆ RandomWalkRuinStrategy() [1/2]

Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy.RandomWalkRuinStrategy ( )
inline

Definition at line 356 of file RoutingIls.pb.cs.

◆ RandomWalkRuinStrategy() [2/2]

Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy.RandomWalkRuinStrategy ( RandomWalkRuinStrategy other)
inline

Definition at line 364 of file RoutingIls.pb.cs.

Member Function Documentation

◆ CalculateSize()

int Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy.CalculateSize ( )
inline

Definition at line 478 of file RoutingIls.pb.cs.

◆ ClearNumRemovedVisits()

void Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy.ClearNumRemovedVisits ( )
inline

Clears the value of the "num_removed_visits" field.

Definition at line 406 of file RoutingIls.pb.cs.

◆ Clone()

RandomWalkRuinStrategy Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy.Clone ( )
inline

Definition at line 372 of file RoutingIls.pb.cs.

◆ Equals() [1/2]

override bool Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy.Equals ( object other)
inline

Definition at line 412 of file RoutingIls.pb.cs.

◆ Equals() [2/2]

bool Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy.Equals ( RandomWalkRuinStrategy other)
inline

Definition at line 418 of file RoutingIls.pb.cs.

◆ GetHashCode()

override int Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy.GetHashCode ( )
inline

Definition at line 431 of file RoutingIls.pb.cs.

◆ MergeFrom() [1/2]

void Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy.MergeFrom ( pb.CodedInputStream input)
inline

Definition at line 503 of file RoutingIls.pb.cs.

◆ MergeFrom() [2/2]

void Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy.MergeFrom ( RandomWalkRuinStrategy other)
inline

Definition at line 491 of file RoutingIls.pb.cs.

◆ ToString()

override string Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy.ToString ( )
inline

Definition at line 442 of file RoutingIls.pb.cs.

◆ WriteTo()

void Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy.WriteTo ( pb.CodedOutputStream output)
inline

Definition at line 448 of file RoutingIls.pb.cs.

Member Data Documentation

◆ NumRemovedVisitsFieldNumber

const int Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy.NumRemovedVisitsFieldNumber = 7
static

Field number for the "num_removed_visits" field.

Definition at line 377 of file RoutingIls.pb.cs.

Property Documentation

◆ Descriptor

pbr.MessageDescriptor Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy.Descriptor
staticget

Definition at line 344 of file RoutingIls.pb.cs.

◆ HasNumRemovedVisits

bool Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy.HasNumRemovedVisits
get

Gets whether the "num_removed_visits" field is set.

Definition at line 400 of file RoutingIls.pb.cs.

◆ NumRemovedVisits

uint Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy.NumRemovedVisits
getset

Number of visits removed during a ruin application defined on visits.

Note
pickup and delivery pairs are considered as a single entity, i.e., the removal of a pickup (respectively delivery) causes the removal of the associated delivery (respectively pickup) and it counts as a single removal.

Definition at line 390 of file RoutingIls.pb.cs.

◆ Parser

pb.MessageParser<RandomWalkRuinStrategy> Google.OrTools.ConstraintSolver.RandomWalkRuinStrategy.Parser
staticget

Definition at line 340 of file RoutingIls.pb.cs.


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