Class IteratedLocalSearchParameters.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<IteratedLocalSearchParameters.Builder>
com.google.protobuf.GeneratedMessage.Builder<IteratedLocalSearchParameters.Builder>
com.google.ortools.constraintsolver.IteratedLocalSearchParameters.Builder
All Implemented Interfaces:
IteratedLocalSearchParametersOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
IteratedLocalSearchParameters

public static final class IteratedLocalSearchParameters.Builder extends com.google.protobuf.GeneratedMessage.Builder<IteratedLocalSearchParameters.Builder> implements IteratedLocalSearchParametersOrBuilder
Specifies the behavior of a search based on ILS.
Protobuf type operations_research.IteratedLocalSearchParameters
  • 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.Builder<IteratedLocalSearchParameters.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<IteratedLocalSearchParameters.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<IteratedLocalSearchParameters.Builder>
    • getDefaultInstanceForType

      public IteratedLocalSearchParameters getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public IteratedLocalSearchParameters.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IteratedLocalSearchParameters.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<IteratedLocalSearchParameters.Builder>
    • mergeFrom

      public IteratedLocalSearchParameters.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IteratedLocalSearchParameters.Builder>
      Throws:
      IOException
    • 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.
    • setPerturbationStrategyValue

      public IteratedLocalSearchParameters.Builder setPerturbationStrategyValue(int value)
      Determines how a reference solution S is perturbed to obtain a neighbor
      solution S'.
      
      .operations_research.PerturbationStrategy.Value perturbation_strategy = 1;
      Parameters:
      value - The enum numeric value on the wire for perturbationStrategy to set.
      Returns:
      This builder for chaining.
    • 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.
    • setPerturbationStrategy

      public IteratedLocalSearchParameters.Builder setPerturbationStrategy(PerturbationStrategy.Value value)
      Determines how a reference solution S is perturbed to obtain a neighbor
      solution S'.
      
      .operations_research.PerturbationStrategy.Value perturbation_strategy = 1;
      Parameters:
      value - The perturbationStrategy to set.
      Returns:
      This builder for chaining.
    • clearPerturbationStrategy

      public IteratedLocalSearchParameters.Builder clearPerturbationStrategy()
      Determines how a reference solution S is perturbed to obtain a neighbor
      solution S'.
      
      .operations_research.PerturbationStrategy.Value perturbation_strategy = 1;
      Returns:
      This builder for chaining.
    • 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.
    • setRuinRecreateParameters

      public IteratedLocalSearchParameters.Builder setRuinRecreateParameters(RuinRecreateParameters value)
      Parameters to customize a ruin and recreate perturbation.
      
      .operations_research.RuinRecreateParameters ruin_recreate_parameters = 2;
    • setRuinRecreateParameters

      public IteratedLocalSearchParameters.Builder setRuinRecreateParameters(RuinRecreateParameters.Builder builderForValue)
      Parameters to customize a ruin and recreate perturbation.
      
      .operations_research.RuinRecreateParameters ruin_recreate_parameters = 2;
    • mergeRuinRecreateParameters

      public IteratedLocalSearchParameters.Builder mergeRuinRecreateParameters(RuinRecreateParameters value)
      Parameters to customize a ruin and recreate perturbation.
      
      .operations_research.RuinRecreateParameters ruin_recreate_parameters = 2;
    • clearRuinRecreateParameters

      public IteratedLocalSearchParameters.Builder clearRuinRecreateParameters()
      Parameters to customize a ruin and recreate perturbation.
      
      .operations_research.RuinRecreateParameters ruin_recreate_parameters = 2;
    • getRuinRecreateParametersBuilder

      public RuinRecreateParameters.Builder getRuinRecreateParametersBuilder()
      Parameters to customize a ruin and recreate perturbation.
      
      .operations_research.RuinRecreateParameters ruin_recreate_parameters = 2;
    • 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.
    • setImprovePerturbedSolution

      public IteratedLocalSearchParameters.Builder setImprovePerturbedSolution(boolean value)
      Determines whether solution S', obtained from the perturbation, should be
      optimized with a local search application.
      
      optional bool improve_perturbed_solution = 3;
      Parameters:
      value - The improvePerturbedSolution to set.
      Returns:
      This builder for chaining.
    • clearImprovePerturbedSolution

      public IteratedLocalSearchParameters.Builder clearImprovePerturbedSolution()
      Determines whether solution S', obtained from the perturbation, should be
      optimized with a local search application.
      
      optional bool improve_perturbed_solution = 3;
      Returns:
      This builder for chaining.
    • 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.
    • setReferenceSolutionAcceptanceStrategy

      public IteratedLocalSearchParameters.Builder setReferenceSolutionAcceptanceStrategy(AcceptanceStrategy value)
      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;
    • setReferenceSolutionAcceptanceStrategy

      public IteratedLocalSearchParameters.Builder setReferenceSolutionAcceptanceStrategy(AcceptanceStrategy.Builder builderForValue)
      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;
    • mergeReferenceSolutionAcceptanceStrategy

      public IteratedLocalSearchParameters.Builder mergeReferenceSolutionAcceptanceStrategy(AcceptanceStrategy value)
      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;
    • clearReferenceSolutionAcceptanceStrategy

      public IteratedLocalSearchParameters.Builder clearReferenceSolutionAcceptanceStrategy()
      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;
    • getReferenceSolutionAcceptanceStrategyBuilder

      public AcceptanceStrategy.Builder getReferenceSolutionAcceptanceStrategyBuilder()
      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;
    • 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.
    • setBestSolutionAcceptanceStrategy

      public IteratedLocalSearchParameters.Builder setBestSolutionAcceptanceStrategy(AcceptanceStrategy value)
      Determines when the neighbor solution S' replaces the best solution found
      so far.
      
      .operations_research.AcceptanceStrategy best_solution_acceptance_strategy = 5;
    • setBestSolutionAcceptanceStrategy

      public IteratedLocalSearchParameters.Builder setBestSolutionAcceptanceStrategy(AcceptanceStrategy.Builder builderForValue)
      Determines when the neighbor solution S' replaces the best solution found
      so far.
      
      .operations_research.AcceptanceStrategy best_solution_acceptance_strategy = 5;
    • mergeBestSolutionAcceptanceStrategy

      public IteratedLocalSearchParameters.Builder mergeBestSolutionAcceptanceStrategy(AcceptanceStrategy value)
      Determines when the neighbor solution S' replaces the best solution found
      so far.
      
      .operations_research.AcceptanceStrategy best_solution_acceptance_strategy = 5;
    • clearBestSolutionAcceptanceStrategy

      public IteratedLocalSearchParameters.Builder clearBestSolutionAcceptanceStrategy()
      Determines when the neighbor solution S' replaces the best solution found
      so far.
      
      .operations_research.AcceptanceStrategy best_solution_acceptance_strategy = 5;
    • getBestSolutionAcceptanceStrategyBuilder

      public AcceptanceStrategy.Builder getBestSolutionAcceptanceStrategyBuilder()
      Determines when the neighbor solution S' replaces the best solution found
      so far.
      
      .operations_research.AcceptanceStrategy best_solution_acceptance_strategy = 5;
    • 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