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:
  • 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 class com.google.protobuf.GeneratedMessage
    • getRuinStrategiesList

      public List<RuinStrategy> getRuinStrategiesList()
       List of ruin strategies determining how a reference solution is ruined.
       
      repeated .operations_research.RuinStrategy ruin_strategies = 1;
      Specified by:
      getRuinStrategiesList in interface RuinRecreateParametersOrBuilder
    • getRuinStrategiesOrBuilderList

      public List<? extends RuinStrategyOrBuilder> getRuinStrategiesOrBuilderList()
       List of ruin strategies determining how a reference solution is ruined.
       
      repeated .operations_research.RuinStrategy ruin_strategies = 1;
      Specified by:
      getRuinStrategiesOrBuilderList in interface RuinRecreateParametersOrBuilder
    • 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 interface RuinRecreateParametersOrBuilder
    • getRuinStrategies

      public RuinStrategy getRuinStrategies(int index)
       List of ruin strategies determining how a reference solution is ruined.
       
      repeated .operations_research.RuinStrategy ruin_strategies = 1;
      Specified by:
      getRuinStrategies in interface RuinRecreateParametersOrBuilder
    • getRuinStrategiesOrBuilder

      public RuinStrategyOrBuilder getRuinStrategiesOrBuilder(int index)
       List of ruin strategies determining how a reference solution is ruined.
       
      repeated .operations_research.RuinStrategy ruin_strategies = 1;
      Specified by:
      getRuinStrategiesOrBuilder in interface RuinRecreateParametersOrBuilder
    • 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 interface RuinRecreateParametersOrBuilder
      Returns:
      The enum numeric value on the wire for ruinCompositionStrategy.
    • getRuinCompositionStrategy

      public RuinCompositionStrategy.Value 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 interface RuinRecreateParametersOrBuilder
      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 interface RuinRecreateParametersOrBuilder
      Returns:
      The enum numeric value on the wire for recreateStrategy.
    • getRecreateStrategy

      public FirstSolutionStrategy.Value getRecreateStrategy()
       Strategy defining how a reference solution is recreated.
       
      .operations_research.FirstSolutionStrategy.Value recreate_strategy = 3;
      Specified by:
      getRecreateStrategy in interface RuinRecreateParametersOrBuilder
      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 interface RuinRecreateParametersOrBuilder
      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 interface RuinRecreateParametersOrBuilder
      Returns:
      The routeSelectionNeighborsRatio.
    • hasRouteSelectionMinNeighbors

      public boolean hasRouteSelectionMinNeighbors()
      optional uint32 route_selection_min_neighbors = 5;
      Specified by:
      hasRouteSelectionMinNeighbors in interface RuinRecreateParametersOrBuilder
      Returns:
      Whether the routeSelectionMinNeighbors field is set.
    • getRouteSelectionMinNeighbors

      public int getRouteSelectionMinNeighbors()
      optional uint32 route_selection_min_neighbors = 5;
      Specified by:
      getRouteSelectionMinNeighbors in interface RuinRecreateParametersOrBuilder
      Returns:
      The routeSelectionMinNeighbors.
    • hasRouteSelectionMaxNeighbors

      public boolean hasRouteSelectionMaxNeighbors()
      optional uint32 route_selection_max_neighbors = 6;
      Specified by:
      hasRouteSelectionMaxNeighbors in interface RuinRecreateParametersOrBuilder
      Returns:
      Whether the routeSelectionMaxNeighbors field is set.
    • getRouteSelectionMaxNeighbors

      public int getRouteSelectionMaxNeighbors()
      optional uint32 route_selection_max_neighbors = 6;
      Specified by:
      getRouteSelectionMaxNeighbors in interface RuinRecreateParametersOrBuilder
      Returns:
      The routeSelectionMaxNeighbors.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static RuinRecreateParameters parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RuinRecreateParameters parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RuinRecreateParameters parseDelimitedFrom(InputStream input) throws IOException
      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

      public RuinRecreateParameters.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RuinRecreateParameters.Builder newBuilder()
    • newBuilder

      public static RuinRecreateParameters.Builder newBuilder(RuinRecreateParameters prototype)
    • toBuilder

      public RuinRecreateParameters.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RuinRecreateParameters.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static RuinRecreateParameters getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RuinRecreateParameters> parser()
    • getParserForType

      public com.google.protobuf.Parser<RuinRecreateParameters> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public RuinRecreateParameters getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder