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 class
Parameters 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.BuilderParent
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static RuinRecreateParameters
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Parser
<RuinRecreateParameters> Strategy defining how a reference solution is recreated.int
Strategy defining how a reference solution is recreated.int
optional uint32 route_selection_max_neighbors = 6;
int
optional uint32 route_selection_min_neighbors = 5;
double
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.The composition strategy to use when combining the given 'ruin_strategies'.int
The composition strategy to use when combining the given 'ruin_strategies'.getRuinStrategies
(int index) List of ruin strategies determining how a reference solution is ruined.int
List 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.int
int
hashCode()
boolean
optional uint32 route_selection_max_neighbors = 6;
boolean
optional uint32 route_selection_min_neighbors = 5;
boolean
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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
newBuilder
(RuinRecreateParameters prototype) protected RuinRecreateParameters.Builder
newBuilderForType
(com.google.protobuf.AbstractMessage.BuilderParent parent) static RuinRecreateParameters
parseDelimitedFrom
(InputStream input) static RuinRecreateParameters
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuinRecreateParameters
parseFrom
(byte[] data) static RuinRecreateParameters
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuinRecreateParameters
parseFrom
(com.google.protobuf.ByteString data) static RuinRecreateParameters
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuinRecreateParameters
parseFrom
(com.google.protobuf.CodedInputStream input) static RuinRecreateParameters
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuinRecreateParameters
parseFrom
(InputStream input) static RuinRecreateParameters
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RuinRecreateParameters
parseFrom
(ByteBuffer data) static RuinRecreateParameters
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser
<RuinRecreateParameters> parser()
void
writeTo
(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, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods 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:
internalGetFieldAccessorTable
in 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:
getRuinStrategiesList
in interfaceRuinRecreateParametersOrBuilder
-
getRuinStrategiesOrBuilderList
List of ruin strategies determining how a reference solution is ruined.
repeated .operations_research.RuinStrategy ruin_strategies = 1;
- Specified by:
getRuinStrategiesOrBuilderList
in 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:
getRuinStrategiesCount
in interfaceRuinRecreateParametersOrBuilder
-
getRuinStrategies
List of ruin strategies determining how a reference solution is ruined.
repeated .operations_research.RuinStrategy ruin_strategies = 1;
- Specified by:
getRuinStrategies
in interfaceRuinRecreateParametersOrBuilder
-
getRuinStrategiesOrBuilder
List of ruin strategies determining how a reference solution is ruined.
repeated .operations_research.RuinStrategy ruin_strategies = 1;
- Specified by:
getRuinStrategiesOrBuilder
in 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:
getRuinCompositionStrategyValue
in 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:
getRuinCompositionStrategy
in 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:
getRecreateStrategyValue
in 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:
getRecreateStrategy
in 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:
hasRouteSelectionNeighborsRatio
in 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:
getRouteSelectionNeighborsRatio
in interfaceRuinRecreateParametersOrBuilder
- Returns:
- The routeSelectionNeighborsRatio.
-
hasRouteSelectionMinNeighbors
public boolean hasRouteSelectionMinNeighbors()optional uint32 route_selection_min_neighbors = 5;
- Specified by:
hasRouteSelectionMinNeighbors
in interfaceRuinRecreateParametersOrBuilder
- Returns:
- Whether the routeSelectionMinNeighbors field is set.
-
getRouteSelectionMinNeighbors
public int getRouteSelectionMinNeighbors()optional uint32 route_selection_min_neighbors = 5;
- Specified by:
getRouteSelectionMinNeighbors
in interfaceRuinRecreateParametersOrBuilder
- Returns:
- The routeSelectionMinNeighbors.
-
hasRouteSelectionMaxNeighbors
public boolean hasRouteSelectionMaxNeighbors()optional uint32 route_selection_max_neighbors = 6;
- Specified by:
hasRouteSelectionMaxNeighbors
in interfaceRuinRecreateParametersOrBuilder
- Returns:
- Whether the routeSelectionMaxNeighbors field is set.
-
getRouteSelectionMaxNeighbors
public int getRouteSelectionMaxNeighbors()optional uint32 route_selection_max_neighbors = 6;
- Specified by:
getRouteSelectionMaxNeighbors
in interfaceRuinRecreateParametersOrBuilder
- Returns:
- The routeSelectionMaxNeighbors.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RuinRecreateParameters.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-