public static final class RandomWalkRuinStrategy.Builder extends com.google.protobuf.GeneratedMessage.Builder<RandomWalkRuinStrategy.Builder> implements RandomWalkRuinStrategyOrBuilder
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
Modifier and Type | Method and Description |
---|---|
RandomWalkRuinStrategy |
build() |
RandomWalkRuinStrategy |
buildPartial() |
RandomWalkRuinStrategy.Builder |
clear() |
RandomWalkRuinStrategy.Builder |
clearNumRemovedVisits()
Number of visits removed during a ruin application defined on visits.
|
RandomWalkRuinStrategy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getNumRemovedVisits()
Number of visits removed during a ruin application defined on visits.
|
boolean |
hasNumRemovedVisits()
Number of visits removed during a ruin application defined on visits.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RandomWalkRuinStrategy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RandomWalkRuinStrategy.Builder |
mergeFrom(com.google.protobuf.Message other) |
RandomWalkRuinStrategy.Builder |
mergeFrom(RandomWalkRuinStrategy other) |
RandomWalkRuinStrategy.Builder |
setNumRemovedVisits(int value)
Number of visits removed during a ruin application defined on visits.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<RandomWalkRuinStrategy.Builder>
public RandomWalkRuinStrategy.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<RandomWalkRuinStrategy.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<RandomWalkRuinStrategy.Builder>
public RandomWalkRuinStrategy getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public RandomWalkRuinStrategy build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public RandomWalkRuinStrategy buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public RandomWalkRuinStrategy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<RandomWalkRuinStrategy.Builder>
public RandomWalkRuinStrategy.Builder mergeFrom(RandomWalkRuinStrategy other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<RandomWalkRuinStrategy.Builder>
public RandomWalkRuinStrategy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<RandomWalkRuinStrategy.Builder>
java.io.IOException
public boolean 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;
hasNumRemovedVisits
in interface RandomWalkRuinStrategyOrBuilder
public int 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;
getNumRemovedVisits
in interface RandomWalkRuinStrategyOrBuilder
public 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.public 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;
Copyright © 2025. All rights reserved.