![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
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.
Protobuf type operations_research.RandomWalkRuinStrategy
Definition at line 265 of file RandomWalkRuinStrategy.java.
Public Member Functions | |
Builder | clear () |
com.google.protobuf.Descriptors.Descriptor | getDescriptorForType () |
com.google.ortools.constraintsolver.RandomWalkRuinStrategy | getDefaultInstanceForType () |
com.google.ortools.constraintsolver.RandomWalkRuinStrategy | build () |
com.google.ortools.constraintsolver.RandomWalkRuinStrategy | buildPartial () |
Builder | mergeFrom (com.google.protobuf.Message other) |
Builder | mergeFrom (com.google.ortools.constraintsolver.RandomWalkRuinStrategy other) |
final boolean | isInitialized () |
Builder | mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
boolean | hasNumRemovedVisits () |
int | getNumRemovedVisits () |
Builder | setNumRemovedVisits (int value) |
Builder | clearNumRemovedVisits () |
Static Public Member Functions | |
static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
com.google.ortools.constraintsolver.RandomWalkRuinStrategy com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.build | ( | ) |
Definition at line 312 of file RandomWalkRuinStrategy.java.
com.google.ortools.constraintsolver.RandomWalkRuinStrategy com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.buildPartial | ( | ) |
Definition at line 321 of file RandomWalkRuinStrategy.java.
Builder com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.clear | ( | ) |
Definition at line 293 of file RandomWalkRuinStrategy.java.
Builder com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.clearNumRemovedVisits | ( | ) |
Number of visits removed during a ruin application defined on visits. Note that 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.
optional uint32 num_removed_visits = 7;
Definition at line 466 of file RandomWalkRuinStrategy.java.
com.google.ortools.constraintsolver.RandomWalkRuinStrategy com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 307 of file RandomWalkRuinStrategy.java.
|
static |
Definition at line 270 of file RandomWalkRuinStrategy.java.
com.google.protobuf.Descriptors.Descriptor com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.getDescriptorForType | ( | ) |
Definition at line 302 of file RandomWalkRuinStrategy.java.
int com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.getNumRemovedVisits | ( | ) |
Number of visits removed during a ruin application defined on visits. Note that 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.
optional uint32 num_removed_visits = 7;
Implements com.google.ortools.constraintsolver.RandomWalkRuinStrategyOrBuilder.
Definition at line 431 of file RandomWalkRuinStrategy.java.
boolean com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.hasNumRemovedVisits | ( | ) |
Number of visits removed during a ruin application defined on visits. Note that 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.
optional uint32 num_removed_visits = 7;
Implements com.google.ortools.constraintsolver.RandomWalkRuinStrategyOrBuilder.
Definition at line 415 of file RandomWalkRuinStrategy.java.
|
protected |
Definition at line 276 of file RandomWalkRuinStrategy.java.
final boolean com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.isInitialized | ( | ) |
Definition at line 359 of file RandomWalkRuinStrategy.java.
Builder com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.mergeFrom | ( | com.google.ortools.constraintsolver.RandomWalkRuinStrategy | other | ) |
Definition at line 348 of file RandomWalkRuinStrategy.java.
Builder com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 364 of file RandomWalkRuinStrategy.java.
Builder com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 339 of file RandomWalkRuinStrategy.java.
Builder com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.setNumRemovedVisits | ( | int | value | ) |
Number of visits removed during a ruin application defined on visits. Note that 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.
optional uint32 num_removed_visits = 7;
value | The numRemovedVisits to set. |
Definition at line 447 of file RandomWalkRuinStrategy.java.