public static final class SimulatedAnnealingParameters.Builder extends com.google.protobuf.GeneratedMessage.Builder<SimulatedAnnealingParameters.Builder> implements SimulatedAnnealingParametersOrBuilder
Specifies the behavior of a simulated annealing acceptance strategy.Protobuf type
operations_research.SimulatedAnnealingParameters
Modifier and Type | Method and Description |
---|---|
SimulatedAnnealingParameters |
build() |
SimulatedAnnealingParameters |
buildPartial() |
SimulatedAnnealingParameters.Builder |
clear() |
SimulatedAnnealingParameters.Builder |
clearAutomaticTemperatures()
Automatically define the value for the temperatures as follows.
|
SimulatedAnnealingParameters.Builder |
clearCoolingScheduleStrategy()
Determines the speed at which the temperature changes from initial to
final.
|
SimulatedAnnealingParameters.Builder |
clearFinalTemperature()
The final temperature.
|
SimulatedAnnealingParameters.Builder |
clearInitialTemperature()
The initial temperature.
|
boolean |
getAutomaticTemperatures()
Automatically define the value for the temperatures as follows.
|
CoolingScheduleStrategy.Value |
getCoolingScheduleStrategy()
Determines the speed at which the temperature changes from initial to
final.
|
int |
getCoolingScheduleStrategyValue()
Determines the speed at which the temperature changes from initial to
final.
|
SimulatedAnnealingParameters |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
double |
getFinalTemperature()
The final temperature.
|
double |
getInitialTemperature()
The initial temperature.
|
boolean |
hasAutomaticTemperatures()
Automatically define the value for the temperatures as follows.
|
boolean |
hasFinalTemperature()
The final temperature.
|
boolean |
hasInitialTemperature()
The initial temperature.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SimulatedAnnealingParameters.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SimulatedAnnealingParameters.Builder |
mergeFrom(com.google.protobuf.Message other) |
SimulatedAnnealingParameters.Builder |
mergeFrom(SimulatedAnnealingParameters other) |
SimulatedAnnealingParameters.Builder |
setAutomaticTemperatures(boolean value)
Automatically define the value for the temperatures as follows.
|
SimulatedAnnealingParameters.Builder |
setCoolingScheduleStrategy(CoolingScheduleStrategy.Value value)
Determines the speed at which the temperature changes from initial to
final.
|
SimulatedAnnealingParameters.Builder |
setCoolingScheduleStrategyValue(int value)
Determines the speed at which the temperature changes from initial to
final.
|
SimulatedAnnealingParameters.Builder |
setFinalTemperature(double value)
The final temperature.
|
SimulatedAnnealingParameters.Builder |
setInitialTemperature(double value)
The initial temperature.
|
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
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<SimulatedAnnealingParameters.Builder>
public SimulatedAnnealingParameters.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<SimulatedAnnealingParameters.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<SimulatedAnnealingParameters.Builder>
public SimulatedAnnealingParameters getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public SimulatedAnnealingParameters build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public SimulatedAnnealingParameters buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public SimulatedAnnealingParameters.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<SimulatedAnnealingParameters.Builder>
public SimulatedAnnealingParameters.Builder mergeFrom(SimulatedAnnealingParameters other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<SimulatedAnnealingParameters.Builder>
public SimulatedAnnealingParameters.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<SimulatedAnnealingParameters.Builder>
java.io.IOException
public int getCoolingScheduleStrategyValue()
Determines the speed at which the temperature changes from initial to final.
.operations_research.CoolingScheduleStrategy.Value cooling_schedule_strategy = 1;
getCoolingScheduleStrategyValue
in interface SimulatedAnnealingParametersOrBuilder
public SimulatedAnnealingParameters.Builder setCoolingScheduleStrategyValue(int value)
Determines the speed at which the temperature changes from initial to final.
.operations_research.CoolingScheduleStrategy.Value cooling_schedule_strategy = 1;
value
- The enum numeric value on the wire for coolingScheduleStrategy to set.public CoolingScheduleStrategy.Value getCoolingScheduleStrategy()
Determines the speed at which the temperature changes from initial to final.
.operations_research.CoolingScheduleStrategy.Value cooling_schedule_strategy = 1;
getCoolingScheduleStrategy
in interface SimulatedAnnealingParametersOrBuilder
public SimulatedAnnealingParameters.Builder setCoolingScheduleStrategy(CoolingScheduleStrategy.Value value)
Determines the speed at which the temperature changes from initial to final.
.operations_research.CoolingScheduleStrategy.Value cooling_schedule_strategy = 1;
value
- The coolingScheduleStrategy to set.public SimulatedAnnealingParameters.Builder clearCoolingScheduleStrategy()
Determines the speed at which the temperature changes from initial to final.
.operations_research.CoolingScheduleStrategy.Value cooling_schedule_strategy = 1;
public boolean hasInitialTemperature()
The initial temperature. See CoolingScheduleStrategy for its usage.
optional double initial_temperature = 2;
hasInitialTemperature
in interface SimulatedAnnealingParametersOrBuilder
public double getInitialTemperature()
The initial temperature. See CoolingScheduleStrategy for its usage.
optional double initial_temperature = 2;
getInitialTemperature
in interface SimulatedAnnealingParametersOrBuilder
public SimulatedAnnealingParameters.Builder setInitialTemperature(double value)
The initial temperature. See CoolingScheduleStrategy for its usage.
optional double initial_temperature = 2;
value
- The initialTemperature to set.public SimulatedAnnealingParameters.Builder clearInitialTemperature()
The initial temperature. See CoolingScheduleStrategy for its usage.
optional double initial_temperature = 2;
public boolean hasFinalTemperature()
The final temperature. See CoolingScheduleStrategy for its usage.
optional double final_temperature = 3;
hasFinalTemperature
in interface SimulatedAnnealingParametersOrBuilder
public double getFinalTemperature()
The final temperature. See CoolingScheduleStrategy for its usage.
optional double final_temperature = 3;
getFinalTemperature
in interface SimulatedAnnealingParametersOrBuilder
public SimulatedAnnealingParameters.Builder setFinalTemperature(double value)
The final temperature. See CoolingScheduleStrategy for its usage.
optional double final_temperature = 3;
value
- The finalTemperature to set.public SimulatedAnnealingParameters.Builder clearFinalTemperature()
The final temperature. See CoolingScheduleStrategy for its usage.
optional double final_temperature = 3;
public boolean hasAutomaticTemperatures()
Automatically define the value for the temperatures as follows. First, a reference temperature t is defined as w1 * c1 + w2 * c2 + ... + wK * cK where 0 < wJ <= 1 is the fraction of vehicles of cost class J and cJ is the average arc cost for the cost class J. The value of cJ is identified by randomly sampling N arc costs for the cost class J, where N is equal to the number of instance nodes. The initial and final temperatures are then defined as - initial_temperature: 0.1 * t - final_temperature: 0.001 * t
optional bool automatic_temperatures = 4;
hasAutomaticTemperatures
in interface SimulatedAnnealingParametersOrBuilder
public boolean getAutomaticTemperatures()
Automatically define the value for the temperatures as follows. First, a reference temperature t is defined as w1 * c1 + w2 * c2 + ... + wK * cK where 0 < wJ <= 1 is the fraction of vehicles of cost class J and cJ is the average arc cost for the cost class J. The value of cJ is identified by randomly sampling N arc costs for the cost class J, where N is equal to the number of instance nodes. The initial and final temperatures are then defined as - initial_temperature: 0.1 * t - final_temperature: 0.001 * t
optional bool automatic_temperatures = 4;
getAutomaticTemperatures
in interface SimulatedAnnealingParametersOrBuilder
public SimulatedAnnealingParameters.Builder setAutomaticTemperatures(boolean value)
Automatically define the value for the temperatures as follows. First, a reference temperature t is defined as w1 * c1 + w2 * c2 + ... + wK * cK where 0 < wJ <= 1 is the fraction of vehicles of cost class J and cJ is the average arc cost for the cost class J. The value of cJ is identified by randomly sampling N arc costs for the cost class J, where N is equal to the number of instance nodes. The initial and final temperatures are then defined as - initial_temperature: 0.1 * t - final_temperature: 0.001 * t
optional bool automatic_temperatures = 4;
value
- The automaticTemperatures to set.public SimulatedAnnealingParameters.Builder clearAutomaticTemperatures()
Automatically define the value for the temperatures as follows. First, a reference temperature t is defined as w1 * c1 + w2 * c2 + ... + wK * cK where 0 < wJ <= 1 is the fraction of vehicles of cost class J and cJ is the average arc cost for the cost class J. The value of cJ is identified by randomly sampling N arc costs for the cost class J, where N is equal to the number of instance nodes. The initial and final temperatures are then defined as - initial_temperature: 0.1 * t - final_temperature: 0.001 * t
optional bool automatic_temperatures = 4;
Copyright © 2025. All rights reserved.