Class IteratedLocalSearchParameters

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.ortools.constraintsolver.IteratedLocalSearchParameters
All Implemented Interfaces:
IteratedLocalSearchParametersOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class IteratedLocalSearchParameters extends com.google.protobuf.GeneratedMessage implements IteratedLocalSearchParametersOrBuilder
Specifies the behavior of a search based on ILS.
Protobuf type operations_research.IteratedLocalSearchParameters
See Also:
  • Field Details

    • PERTURBATION_STRATEGY_FIELD_NUMBER

      public static final int PERTURBATION_STRATEGY_FIELD_NUMBER
      See Also:
    • RUIN_RECREATE_PARAMETERS_FIELD_NUMBER

      public static final int RUIN_RECREATE_PARAMETERS_FIELD_NUMBER
      See Also:
    • IMPROVE_PERTURBED_SOLUTION_FIELD_NUMBER

      public static final int IMPROVE_PERTURBED_SOLUTION_FIELD_NUMBER
      See Also:
    • REFERENCE_SOLUTION_ACCEPTANCE_STRATEGY_FIELD_NUMBER

      public static final int REFERENCE_SOLUTION_ACCEPTANCE_STRATEGY_FIELD_NUMBER
      See Also:
    • BEST_SOLUTION_ACCEPTANCE_STRATEGY_FIELD_NUMBER

      public static final int BEST_SOLUTION_ACCEPTANCE_STRATEGY_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
    • getPerturbationStrategyValue

      public int getPerturbationStrategyValue()
      Determines how a reference solution S is perturbed to obtain a neighbor
      solution S'.
      
      .operations_research.PerturbationStrategy.Value perturbation_strategy = 1;
      Specified by:
      getPerturbationStrategyValue in interface IteratedLocalSearchParametersOrBuilder
      Returns:
      The enum numeric value on the wire for perturbationStrategy.
    • getPerturbationStrategy

      public PerturbationStrategy.Value getPerturbationStrategy()
      Determines how a reference solution S is perturbed to obtain a neighbor
      solution S'.
      
      .operations_research.PerturbationStrategy.Value perturbation_strategy = 1;
      Specified by:
      getPerturbationStrategy in interface IteratedLocalSearchParametersOrBuilder
      Returns:
      The perturbationStrategy.
    • hasRuinRecreateParameters

      public boolean hasRuinRecreateParameters()
      Parameters to customize a ruin and recreate perturbation.
      
      .operations_research.RuinRecreateParameters ruin_recreate_parameters = 2;
      Specified by:
      hasRuinRecreateParameters in interface IteratedLocalSearchParametersOrBuilder
      Returns:
      Whether the ruinRecreateParameters field is set.
    • getRuinRecreateParameters

      public RuinRecreateParameters getRuinRecreateParameters()
      Parameters to customize a ruin and recreate perturbation.
      
      .operations_research.RuinRecreateParameters ruin_recreate_parameters = 2;
      Specified by:
      getRuinRecreateParameters in interface IteratedLocalSearchParametersOrBuilder
      Returns:
      The ruinRecreateParameters.
    • getRuinRecreateParametersOrBuilder

      public RuinRecreateParametersOrBuilder getRuinRecreateParametersOrBuilder()
      Parameters to customize a ruin and recreate perturbation.
      
      .operations_research.RuinRecreateParameters ruin_recreate_parameters = 2;
      Specified by:
      getRuinRecreateParametersOrBuilder in interface IteratedLocalSearchParametersOrBuilder
    • hasImprovePerturbedSolution

      public boolean hasImprovePerturbedSolution()
      Determines whether solution S', obtained from the perturbation, should be
      optimized with a local search application.
      
      optional bool improve_perturbed_solution = 3;
      Specified by:
      hasImprovePerturbedSolution in interface IteratedLocalSearchParametersOrBuilder
      Returns:
      Whether the improvePerturbedSolution field is set.
    • getImprovePerturbedSolution

      public boolean getImprovePerturbedSolution()
      Determines whether solution S', obtained from the perturbation, should be
      optimized with a local search application.
      
      optional bool improve_perturbed_solution = 3;
      Specified by:
      getImprovePerturbedSolution in interface IteratedLocalSearchParametersOrBuilder
      Returns:
      The improvePerturbedSolution.
    • hasReferenceSolutionAcceptanceStrategy

      public boolean hasReferenceSolutionAcceptanceStrategy()
      Determines when the neighbor solution S', possibly improved if
      `improve_perturbed_solution` is true, replaces the reference solution S.
      
      .operations_research.AcceptanceStrategy reference_solution_acceptance_strategy = 4;
      Specified by:
      hasReferenceSolutionAcceptanceStrategy in interface IteratedLocalSearchParametersOrBuilder
      Returns:
      Whether the referenceSolutionAcceptanceStrategy field is set.
    • getReferenceSolutionAcceptanceStrategy

      public AcceptanceStrategy getReferenceSolutionAcceptanceStrategy()
      Determines when the neighbor solution S', possibly improved if
      `improve_perturbed_solution` is true, replaces the reference solution S.
      
      .operations_research.AcceptanceStrategy reference_solution_acceptance_strategy = 4;
      Specified by:
      getReferenceSolutionAcceptanceStrategy in interface IteratedLocalSearchParametersOrBuilder
      Returns:
      The referenceSolutionAcceptanceStrategy.
    • getReferenceSolutionAcceptanceStrategyOrBuilder

      public AcceptanceStrategyOrBuilder getReferenceSolutionAcceptanceStrategyOrBuilder()
      Determines when the neighbor solution S', possibly improved if
      `improve_perturbed_solution` is true, replaces the reference solution S.
      
      .operations_research.AcceptanceStrategy reference_solution_acceptance_strategy = 4;
      Specified by:
      getReferenceSolutionAcceptanceStrategyOrBuilder in interface IteratedLocalSearchParametersOrBuilder
    • hasBestSolutionAcceptanceStrategy

      public boolean hasBestSolutionAcceptanceStrategy()
      Determines when the neighbor solution S' replaces the best solution found
      so far.
      
      .operations_research.AcceptanceStrategy best_solution_acceptance_strategy = 5;
      Specified by:
      hasBestSolutionAcceptanceStrategy in interface IteratedLocalSearchParametersOrBuilder
      Returns:
      Whether the bestSolutionAcceptanceStrategy field is set.
    • getBestSolutionAcceptanceStrategy

      public AcceptanceStrategy getBestSolutionAcceptanceStrategy()
      Determines when the neighbor solution S' replaces the best solution found
      so far.
      
      .operations_research.AcceptanceStrategy best_solution_acceptance_strategy = 5;
      Specified by:
      getBestSolutionAcceptanceStrategy in interface IteratedLocalSearchParametersOrBuilder
      Returns:
      The bestSolutionAcceptanceStrategy.
    • getBestSolutionAcceptanceStrategyOrBuilder

      public AcceptanceStrategyOrBuilder getBestSolutionAcceptanceStrategyOrBuilder()
      Determines when the neighbor solution S' replaces the best solution found
      so far.
      
      .operations_research.AcceptanceStrategy best_solution_acceptance_strategy = 5;
      Specified by:
      getBestSolutionAcceptanceStrategyOrBuilder in interface IteratedLocalSearchParametersOrBuilder
    • 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 IteratedLocalSearchParameters parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IteratedLocalSearchParameters parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IteratedLocalSearchParameters parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IteratedLocalSearchParameters parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IteratedLocalSearchParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static IteratedLocalSearchParameters parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static IteratedLocalSearchParameters parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static IteratedLocalSearchParameters parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static IteratedLocalSearchParameters parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static IteratedLocalSearchParameters.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static IteratedLocalSearchParameters getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<IteratedLocalSearchParameters> 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 IteratedLocalSearchParameters getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder