Class RuinRecreateParameters
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.ortools.constraintsolver.RuinRecreateParameters
- All Implemented Interfaces:
RuinRecreateParametersOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class RuinRecreateParameters
extends com.google.protobuf.GeneratedMessage
implements RuinRecreateParametersOrBuilder
Parameters to configure a perturbation based on a ruin and recreate approach.Protobuf type
operations_research.RuinRecreateParameters- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classParameters to configure a perturbation based on a ruin and recreate approach.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RuinRecreateParametersstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<RuinRecreateParameters> Strategy defining how a reference solution is recreated.intStrategy defining how a reference solution is recreated.intoptional uint32 route_selection_max_neighbors = 6;intoptional uint32 route_selection_min_neighbors = 5;doubleRatio in [0, 1] of non start/end nodes to consider as neighbors for the identification of routes spatially close to a non start/end seed node.The composition strategy to use when combining the given 'ruin_strategies'.intThe composition strategy to use when combining the given 'ruin_strategies'.getRuinStrategies(int index) List of ruin strategies determining how a reference solution is ruined.intList of ruin strategies determining how a reference solution is ruined.List of ruin strategies determining how a reference solution is ruined.getRuinStrategiesOrBuilder(int index) List of ruin strategies determining how a reference solution is ruined.List<? extends RuinStrategyOrBuilder> List of ruin strategies determining how a reference solution is ruined.intinthashCode()booleanoptional uint32 route_selection_max_neighbors = 6;booleanoptional uint32 route_selection_min_neighbors = 5;booleanRatio in [0, 1] of non start/end nodes to consider as neighbors for the identification of routes spatially close to a non start/end seed node.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(RuinRecreateParameters prototype) protected RuinRecreateParameters.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static RuinRecreateParametersparseDelimitedFrom(InputStream input) static RuinRecreateParametersparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuinRecreateParametersparseFrom(byte[] data) static RuinRecreateParametersparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuinRecreateParametersparseFrom(com.google.protobuf.ByteString data) static RuinRecreateParametersparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuinRecreateParametersparseFrom(com.google.protobuf.CodedInputStream input) static RuinRecreateParametersparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuinRecreateParametersparseFrom(InputStream input) static RuinRecreateParametersparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuinRecreateParametersparseFrom(ByteBuffer data) static RuinRecreateParametersparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RuinRecreateParameters> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
RUIN_STRATEGIES_FIELD_NUMBER
public static final int RUIN_STRATEGIES_FIELD_NUMBER- See Also:
-
RUIN_COMPOSITION_STRATEGY_FIELD_NUMBER
public static final int RUIN_COMPOSITION_STRATEGY_FIELD_NUMBER- See Also:
-
RECREATE_STRATEGY_FIELD_NUMBER
public static final int RECREATE_STRATEGY_FIELD_NUMBER- See Also:
-
ROUTE_SELECTION_NEIGHBORS_RATIO_FIELD_NUMBER
public static final int ROUTE_SELECTION_NEIGHBORS_RATIO_FIELD_NUMBER- See Also:
-
ROUTE_SELECTION_MIN_NEIGHBORS_FIELD_NUMBER
public static final int ROUTE_SELECTION_MIN_NEIGHBORS_FIELD_NUMBER- See Also:
-
ROUTE_SELECTION_MAX_NEIGHBORS_FIELD_NUMBER
public static final int ROUTE_SELECTION_MAX_NEIGHBORS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getRuinStrategiesList
List of ruin strategies determining how a reference solution is ruined.
repeated .operations_research.RuinStrategy ruin_strategies = 1;- Specified by:
getRuinStrategiesListin interfaceRuinRecreateParametersOrBuilder
-
getRuinStrategiesOrBuilderList
List of ruin strategies determining how a reference solution is ruined.
repeated .operations_research.RuinStrategy ruin_strategies = 1;- Specified by:
getRuinStrategiesOrBuilderListin interfaceRuinRecreateParametersOrBuilder
-
getRuinStrategiesCount
public int getRuinStrategiesCount()List of ruin strategies determining how a reference solution is ruined.
repeated .operations_research.RuinStrategy ruin_strategies = 1;- Specified by:
getRuinStrategiesCountin interfaceRuinRecreateParametersOrBuilder
-
getRuinStrategies
List of ruin strategies determining how a reference solution is ruined.
repeated .operations_research.RuinStrategy ruin_strategies = 1;- Specified by:
getRuinStrategiesin interfaceRuinRecreateParametersOrBuilder
-
getRuinStrategiesOrBuilder
List of ruin strategies determining how a reference solution is ruined.
repeated .operations_research.RuinStrategy ruin_strategies = 1;- Specified by:
getRuinStrategiesOrBuilderin interfaceRuinRecreateParametersOrBuilder
-
getRuinCompositionStrategyValue
public int getRuinCompositionStrategyValue()The composition strategy to use when combining the given 'ruin_strategies'. Has no effect when ruin_strategies is composed of a single strategy.
.operations_research.RuinCompositionStrategy.Value ruin_composition_strategy = 2;- Specified by:
getRuinCompositionStrategyValuein interfaceRuinRecreateParametersOrBuilder- Returns:
- The enum numeric value on the wire for ruinCompositionStrategy.
-
getRuinCompositionStrategy
The composition strategy to use when combining the given 'ruin_strategies'. Has no effect when ruin_strategies is composed of a single strategy.
.operations_research.RuinCompositionStrategy.Value ruin_composition_strategy = 2;- Specified by:
getRuinCompositionStrategyin interfaceRuinRecreateParametersOrBuilder- Returns:
- The ruinCompositionStrategy.
-
getRecreateStrategyValue
public int getRecreateStrategyValue()Strategy defining how a reference solution is recreated.
.operations_research.FirstSolutionStrategy.Value recreate_strategy = 3;- Specified by:
getRecreateStrategyValuein interfaceRuinRecreateParametersOrBuilder- Returns:
- The enum numeric value on the wire for recreateStrategy.
-
getRecreateStrategy
Strategy defining how a reference solution is recreated.
.operations_research.FirstSolutionStrategy.Value recreate_strategy = 3;- Specified by:
getRecreateStrategyin interfaceRuinRecreateParametersOrBuilder- Returns:
- The recreateStrategy.
-
hasRouteSelectionNeighborsRatio
public boolean hasRouteSelectionNeighborsRatio()Ratio in [0, 1] of non start/end nodes to consider as neighbors for the identification of routes spatially close to a non start/end seed node. In particular, given a non start/end seed node s served by route r, we say that a route r' is spatially close to the seed node s if there is at least one non start/end node s' among the neighbors of s, such that s' is served by r'. The neighbors_ratio is coupled with the corresponding min_neighbors and max_neighbors values, defining the minimum and maximum number of neighbor nodes considered for a given seed node: num_neighbors = min(max_neighbors, max(min_neighbors, neighbors_ratio * NUM_NON_START_END_NODES)) Neighbors ratio, and minimum and maximum number of non start/end neighbor nodes for the identification of spatially close routes.
optional double route_selection_neighbors_ratio = 4;- Specified by:
hasRouteSelectionNeighborsRatioin interfaceRuinRecreateParametersOrBuilder- Returns:
- Whether the routeSelectionNeighborsRatio field is set.
-
getRouteSelectionNeighborsRatio
public double getRouteSelectionNeighborsRatio()Ratio in [0, 1] of non start/end nodes to consider as neighbors for the identification of routes spatially close to a non start/end seed node. In particular, given a non start/end seed node s served by route r, we say that a route r' is spatially close to the seed node s if there is at least one non start/end node s' among the neighbors of s, such that s' is served by r'. The neighbors_ratio is coupled with the corresponding min_neighbors and max_neighbors values, defining the minimum and maximum number of neighbor nodes considered for a given seed node: num_neighbors = min(max_neighbors, max(min_neighbors, neighbors_ratio * NUM_NON_START_END_NODES)) Neighbors ratio, and minimum and maximum number of non start/end neighbor nodes for the identification of spatially close routes.
optional double route_selection_neighbors_ratio = 4;- Specified by:
getRouteSelectionNeighborsRatioin interfaceRuinRecreateParametersOrBuilder- Returns:
- The routeSelectionNeighborsRatio.
-
hasRouteSelectionMinNeighbors
public boolean hasRouteSelectionMinNeighbors()optional uint32 route_selection_min_neighbors = 5;- Specified by:
hasRouteSelectionMinNeighborsin interfaceRuinRecreateParametersOrBuilder- Returns:
- Whether the routeSelectionMinNeighbors field is set.
-
getRouteSelectionMinNeighbors
public int getRouteSelectionMinNeighbors()optional uint32 route_selection_min_neighbors = 5;- Specified by:
getRouteSelectionMinNeighborsin interfaceRuinRecreateParametersOrBuilder- Returns:
- The routeSelectionMinNeighbors.
-
hasRouteSelectionMaxNeighbors
public boolean hasRouteSelectionMaxNeighbors()optional uint32 route_selection_max_neighbors = 6;- Specified by:
hasRouteSelectionMaxNeighborsin interfaceRuinRecreateParametersOrBuilder- Returns:
- Whether the routeSelectionMaxNeighbors field is set.
-
getRouteSelectionMaxNeighbors
public int getRouteSelectionMaxNeighbors()optional uint32 route_selection_max_neighbors = 6;- Specified by:
getRouteSelectionMaxNeighborsin interfaceRuinRecreateParametersOrBuilder- Returns:
- The routeSelectionMaxNeighbors.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RuinRecreateParameters parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RuinRecreateParameters parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RuinRecreateParameters parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RuinRecreateParameters parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RuinRecreateParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RuinRecreateParameters parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RuinRecreateParameters parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static RuinRecreateParameters parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static RuinRecreateParameters parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static RuinRecreateParameters parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RuinRecreateParameters.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-