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', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.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'.Parameters to customize a ruin and recreate perturbation.Parameters to customize a simulated annealing acceptance strategy.Determines when the neighbor solution S', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.int
Determines when the neighbor solution S', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
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'.int
Determines how a reference solution S is perturbed to obtain a neighbor 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.Parameters to customize a simulated annealing acceptance strategy.Parameters to customize a simulated annealing acceptance strategy.Parameters to customize a simulated annealing acceptance strategy.boolean
Determines whether solution S', obtained from the perturbation, should be optimized with a local search application.boolean
Parameters to customize a ruin and recreate perturbation.boolean
Parameters to customize a simulated annealing acceptance strategy.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) Parameters to customize a ruin and recreate perturbation.Parameters to customize a simulated annealing acceptance strategy.Determines when the neighbor solution S', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.setAcceptanceStrategyValue
(int value) Determines when the neighbor solution S', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.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'.Parameters to customize a ruin and recreate perturbation.setRuinRecreateParameters
(RuinRecreateParameters.Builder builderForValue) Parameters to customize a ruin and recreate perturbation.Parameters to customize a simulated annealing acceptance strategy.setSimulatedAnnealingParameters
(SimulatedAnnealingParameters.Builder builderForValue) Parameters to customize a simulated annealing acceptance strategy.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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<IteratedLocalSearchParameters.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<IteratedLocalSearchParameters.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<IteratedLocalSearchParameters.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<IteratedLocalSearchParameters.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getPerturbationStrategyValue
in 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:
getPerturbationStrategy
in 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:
hasRuinRecreateParameters
in 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:
getRuinRecreateParameters
in 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:
getRuinRecreateParametersOrBuilder
in 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:
hasImprovePerturbedSolution
in 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:
getImprovePerturbedSolution
in 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.
-
getAcceptanceStrategyValue
public int getAcceptanceStrategyValue()Determines when the neighbor solution S', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.
.operations_research.AcceptanceStrategy.Value acceptance_strategy = 4;
- Specified by:
getAcceptanceStrategyValue
in interfaceIteratedLocalSearchParametersOrBuilder
- Returns:
- The enum numeric value on the wire for acceptanceStrategy.
-
setAcceptanceStrategyValue
Determines when the neighbor solution S', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.
.operations_research.AcceptanceStrategy.Value acceptance_strategy = 4;
- Parameters:
value
- The enum numeric value on the wire for acceptanceStrategy to set.- Returns:
- This builder for chaining.
-
getAcceptanceStrategy
Determines when the neighbor solution S', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.
.operations_research.AcceptanceStrategy.Value acceptance_strategy = 4;
- Specified by:
getAcceptanceStrategy
in interfaceIteratedLocalSearchParametersOrBuilder
- Returns:
- The acceptanceStrategy.
-
setAcceptanceStrategy
Determines when the neighbor solution S', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.
.operations_research.AcceptanceStrategy.Value acceptance_strategy = 4;
- Parameters:
value
- The acceptanceStrategy to set.- Returns:
- This builder for chaining.
-
clearAcceptanceStrategy
Determines when the neighbor solution S', possibly improved if `improve_perturbed_solution` is true, replaces the reference solution S.
.operations_research.AcceptanceStrategy.Value acceptance_strategy = 4;
- Returns:
- This builder for chaining.
-
hasSimulatedAnnealingParameters
public boolean hasSimulatedAnnealingParameters()Parameters to customize a simulated annealing acceptance strategy. These parameters are required iff the acceptance_strategy is SIMULATED_ANNEALING.
.operations_research.SimulatedAnnealingParameters simulated_annealing_parameters = 5;
- Specified by:
hasSimulatedAnnealingParameters
in interfaceIteratedLocalSearchParametersOrBuilder
- Returns:
- Whether the simulatedAnnealingParameters field is set.
-
getSimulatedAnnealingParameters
Parameters to customize a simulated annealing acceptance strategy. These parameters are required iff the acceptance_strategy is SIMULATED_ANNEALING.
.operations_research.SimulatedAnnealingParameters simulated_annealing_parameters = 5;
- Specified by:
getSimulatedAnnealingParameters
in interfaceIteratedLocalSearchParametersOrBuilder
- Returns:
- The simulatedAnnealingParameters.
-
setSimulatedAnnealingParameters
public IteratedLocalSearchParameters.Builder setSimulatedAnnealingParameters(SimulatedAnnealingParameters value) Parameters to customize a simulated annealing acceptance strategy. These parameters are required iff the acceptance_strategy is SIMULATED_ANNEALING.
.operations_research.SimulatedAnnealingParameters simulated_annealing_parameters = 5;
-
setSimulatedAnnealingParameters
public IteratedLocalSearchParameters.Builder setSimulatedAnnealingParameters(SimulatedAnnealingParameters.Builder builderForValue) Parameters to customize a simulated annealing acceptance strategy. These parameters are required iff the acceptance_strategy is SIMULATED_ANNEALING.
.operations_research.SimulatedAnnealingParameters simulated_annealing_parameters = 5;
-
mergeSimulatedAnnealingParameters
public IteratedLocalSearchParameters.Builder mergeSimulatedAnnealingParameters(SimulatedAnnealingParameters value) Parameters to customize a simulated annealing acceptance strategy. These parameters are required iff the acceptance_strategy is SIMULATED_ANNEALING.
.operations_research.SimulatedAnnealingParameters simulated_annealing_parameters = 5;
-
clearSimulatedAnnealingParameters
Parameters to customize a simulated annealing acceptance strategy. These parameters are required iff the acceptance_strategy is SIMULATED_ANNEALING.
.operations_research.SimulatedAnnealingParameters simulated_annealing_parameters = 5;
-
getSimulatedAnnealingParametersBuilder
Parameters to customize a simulated annealing acceptance strategy. These parameters are required iff the acceptance_strategy is SIMULATED_ANNEALING.
.operations_research.SimulatedAnnealingParameters simulated_annealing_parameters = 5;
-
getSimulatedAnnealingParametersOrBuilder
Parameters to customize a simulated annealing acceptance strategy. These parameters are required iff the acceptance_strategy is SIMULATED_ANNEALING.
.operations_research.SimulatedAnnealingParameters simulated_annealing_parameters = 5;
- Specified by:
getSimulatedAnnealingParametersOrBuilder
in interfaceIteratedLocalSearchParametersOrBuilder
-