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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Determines when the neighbor solution S' replaces the best solution found so far.Determines whether solution S', obtained from the perturbation, should be optimized with a local search application.Determines how a reference solution S is perturbed to obtain a neighbor solution S'.Determines when the neighbor solution S', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.Parameters to customize a ruin and recreate perturbation.Determines when the neighbor solution S' replaces the best solution found so far.Determines when the neighbor solution S' replaces the best solution found so far.Determines when the neighbor solution S' replaces the best solution found so far.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanDetermines whether solution S', obtained from the perturbation, should be optimized with a local search application.Determines how a reference solution S is perturbed to obtain a neighbor solution S'.intDetermines how a reference solution S is perturbed to obtain a neighbor solution S'.Determines when the neighbor solution S', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.Determines when the neighbor solution S', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.Determines when the neighbor solution S', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.Parameters to customize a ruin and recreate perturbation.Parameters to customize a ruin and recreate perturbation.Parameters to customize a ruin and recreate perturbation.booleanDetermines when the neighbor solution S' replaces the best solution found so far.booleanDetermines whether solution S', obtained from the perturbation, should be optimized with a local search application.booleanDetermines when the neighbor solution S', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.booleanParameters to customize a ruin and recreate perturbation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanDetermines when the neighbor solution S' replaces the best solution found so far.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Determines when the neighbor solution S', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.Parameters to customize a ruin and recreate perturbation.Determines when the neighbor solution S' replaces the best solution found so far.setBestSolutionAcceptanceStrategy(AcceptanceStrategy.Builder builderForValue) Determines when the neighbor solution S' replaces the best solution found so far.setImprovePerturbedSolution(boolean value) Determines whether solution S', obtained from the perturbation, should be optimized with a local search application.Determines how a reference solution S is perturbed to obtain a neighbor solution S'.setPerturbationStrategyValue(int value) Determines how a reference solution S is perturbed to obtain a neighbor solution S'.Determines when the neighbor solution S', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.setReferenceSolutionAcceptanceStrategy(AcceptanceStrategy.Builder builderForValue) Determines when the neighbor solution S', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.Parameters to customize a ruin and recreate perturbation.setRuinRecreateParameters(RuinRecreateParameters.Builder builderForValue) Parameters to customize a ruin and recreate perturbation.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<IteratedLocalSearchParameters.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<IteratedLocalSearchParameters.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<IteratedLocalSearchParameters.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IteratedLocalSearchParameters.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getPerturbationStrategyValuein interfaceIteratedLocalSearchParametersOrBuilder- Returns:
- The enum numeric value on the wire for perturbationStrategy.
-
setPerturbationStrategyValue
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
Determines how a reference solution S is perturbed to obtain a neighbor solution S'.
.operations_research.PerturbationStrategy.Value perturbation_strategy = 1;- Specified by:
getPerturbationStrategyin interfaceIteratedLocalSearchParametersOrBuilder- 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
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:
hasRuinRecreateParametersin interfaceIteratedLocalSearchParametersOrBuilder- Returns:
- Whether the ruinRecreateParameters field is set.
-
getRuinRecreateParameters
Parameters to customize a ruin and recreate perturbation.
.operations_research.RuinRecreateParameters ruin_recreate_parameters = 2;- Specified by:
getRuinRecreateParametersin interfaceIteratedLocalSearchParametersOrBuilder- 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
Parameters to customize a ruin and recreate perturbation.
.operations_research.RuinRecreateParameters ruin_recreate_parameters = 2; -
getRuinRecreateParametersBuilder
Parameters to customize a ruin and recreate perturbation.
.operations_research.RuinRecreateParameters ruin_recreate_parameters = 2; -
getRuinRecreateParametersOrBuilder
Parameters to customize a ruin and recreate perturbation.
.operations_research.RuinRecreateParameters ruin_recreate_parameters = 2;- Specified by:
getRuinRecreateParametersOrBuilderin interfaceIteratedLocalSearchParametersOrBuilder
-
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:
hasImprovePerturbedSolutionin interfaceIteratedLocalSearchParametersOrBuilder- 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:
getImprovePerturbedSolutionin interfaceIteratedLocalSearchParametersOrBuilder- Returns:
- The improvePerturbedSolution.
-
setImprovePerturbedSolution
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
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:
hasReferenceSolutionAcceptanceStrategyin interfaceIteratedLocalSearchParametersOrBuilder- Returns:
- Whether the referenceSolutionAcceptanceStrategy field is set.
-
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:
getReferenceSolutionAcceptanceStrategyin interfaceIteratedLocalSearchParametersOrBuilder- 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
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
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
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:
getReferenceSolutionAcceptanceStrategyOrBuilderin interfaceIteratedLocalSearchParametersOrBuilder
-
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:
hasBestSolutionAcceptanceStrategyin interfaceIteratedLocalSearchParametersOrBuilder- Returns:
- Whether the bestSolutionAcceptanceStrategy field is set.
-
getBestSolutionAcceptanceStrategy
Determines when the neighbor solution S' replaces the best solution found so far.
.operations_research.AcceptanceStrategy best_solution_acceptance_strategy = 5;- Specified by:
getBestSolutionAcceptanceStrategyin interfaceIteratedLocalSearchParametersOrBuilder- 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
Determines when the neighbor solution S' replaces the best solution found so far.
.operations_research.AcceptanceStrategy best_solution_acceptance_strategy = 5; -
getBestSolutionAcceptanceStrategyBuilder
Determines when the neighbor solution S' replaces the best solution found so far.
.operations_research.AcceptanceStrategy best_solution_acceptance_strategy = 5; -
getBestSolutionAcceptanceStrategyOrBuilder
Determines when the neighbor solution S' replaces the best solution found so far.
.operations_research.AcceptanceStrategy best_solution_acceptance_strategy = 5;- Specified by:
getBestSolutionAcceptanceStrategyOrBuilderin interfaceIteratedLocalSearchParametersOrBuilder
-