Class SimulatedAnnealingParameters

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

@Generated public final class SimulatedAnnealingParameters extends com.google.protobuf.GeneratedMessage implements SimulatedAnnealingParametersOrBuilder
 Specifies the behavior of a simulated annealing acceptance strategy.
 
Protobuf type operations_research.SimulatedAnnealingParameters
See Also:
  • Field Details

    • COOLING_SCHEDULE_STRATEGY_FIELD_NUMBER

      public static final int COOLING_SCHEDULE_STRATEGY_FIELD_NUMBER
      See Also:
    • INITIAL_TEMPERATURE_FIELD_NUMBER

      public static final int INITIAL_TEMPERATURE_FIELD_NUMBER
      See Also:
    • FINAL_TEMPERATURE_FIELD_NUMBER

      public static final int FINAL_TEMPERATURE_FIELD_NUMBER
      See Also:
    • AUTOMATIC_TEMPERATURES_FIELD_NUMBER

      public static final int AUTOMATIC_TEMPERATURES_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
    • getCoolingScheduleStrategyValue

      public int getCoolingScheduleStrategyValue()
       Determines the speed at which the temperature changes from initial to
       final.
       
      .operations_research.CoolingScheduleStrategy.Value cooling_schedule_strategy = 1;
      Specified by:
      getCoolingScheduleStrategyValue in interface SimulatedAnnealingParametersOrBuilder
      Returns:
      The enum numeric value on the wire for coolingScheduleStrategy.
    • getCoolingScheduleStrategy

      public CoolingScheduleStrategy.Value getCoolingScheduleStrategy()
       Determines the speed at which the temperature changes from initial to
       final.
       
      .operations_research.CoolingScheduleStrategy.Value cooling_schedule_strategy = 1;
      Specified by:
      getCoolingScheduleStrategy in interface SimulatedAnnealingParametersOrBuilder
      Returns:
      The coolingScheduleStrategy.
    • hasInitialTemperature

      public boolean hasInitialTemperature()
       The initial temperature. See CoolingScheduleStrategy for its usage.
       
      optional double initial_temperature = 2;
      Specified by:
      hasInitialTemperature in interface SimulatedAnnealingParametersOrBuilder
      Returns:
      Whether the initialTemperature field is set.
    • getInitialTemperature

      public double getInitialTemperature()
       The initial temperature. See CoolingScheduleStrategy for its usage.
       
      optional double initial_temperature = 2;
      Specified by:
      getInitialTemperature in interface SimulatedAnnealingParametersOrBuilder
      Returns:
      The initialTemperature.
    • hasFinalTemperature

      public boolean hasFinalTemperature()
       The final temperature. See CoolingScheduleStrategy for its usage.
       
      optional double final_temperature = 3;
      Specified by:
      hasFinalTemperature in interface SimulatedAnnealingParametersOrBuilder
      Returns:
      Whether the finalTemperature field is set.
    • getFinalTemperature

      public double getFinalTemperature()
       The final temperature. See CoolingScheduleStrategy for its usage.
       
      optional double final_temperature = 3;
      Specified by:
      getFinalTemperature in interface SimulatedAnnealingParametersOrBuilder
      Returns:
      The finalTemperature.
    • hasAutomaticTemperatures

      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;
      Specified by:
      hasAutomaticTemperatures in interface SimulatedAnnealingParametersOrBuilder
      Returns:
      Whether the automaticTemperatures field is set.
    • getAutomaticTemperatures

      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;
      Specified by:
      getAutomaticTemperatures in interface SimulatedAnnealingParametersOrBuilder
      Returns:
      The automaticTemperatures.
    • 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 SimulatedAnnealingParameters parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static SimulatedAnnealingParameters.Builder newBuilder()
    • newBuilder

    • toBuilder

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

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

      public static SimulatedAnnealingParameters getDefaultInstance()
    • parser

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

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