Class SimulatedAnnealingAcceptanceStrategy.Builder

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

public static final class SimulatedAnnealingAcceptanceStrategy.Builder extends com.google.protobuf.GeneratedMessage.Builder<SimulatedAnnealingAcceptanceStrategy.Builder> implements SimulatedAnnealingAcceptanceStrategyOrBuilder
Acceptance strategy in which solutions are accepted with a probability that
depends on its quality and on the current state of the search.
Protobuf type operations_research.SimulatedAnnealingAcceptanceStrategy
  • 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<SimulatedAnnealingAcceptanceStrategy.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<SimulatedAnnealingAcceptanceStrategy.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<SimulatedAnnealingAcceptanceStrategy.Builder>
    • getDefaultInstanceForType

      public SimulatedAnnealingAcceptanceStrategy 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 SimulatedAnnealingAcceptanceStrategy buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SimulatedAnnealingAcceptanceStrategy.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<SimulatedAnnealingAcceptanceStrategy.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<SimulatedAnnealingAcceptanceStrategy.Builder>
    • mergeFrom

      public SimulatedAnnealingAcceptanceStrategy.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<SimulatedAnnealingAcceptanceStrategy.Builder>
      Throws:
      IOException
    • 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 SimulatedAnnealingAcceptanceStrategyOrBuilder
      Returns:
      The enum numeric value on the wire for coolingScheduleStrategy.
    • setCoolingScheduleStrategyValue

      public SimulatedAnnealingAcceptanceStrategy.Builder setCoolingScheduleStrategyValue(int value)
      Determines the speed at which the temperature changes from initial to
      final.
      
      .operations_research.CoolingScheduleStrategy.Value cooling_schedule_strategy = 1;
      Parameters:
      value - The enum numeric value on the wire for coolingScheduleStrategy to set.
      Returns:
      This builder for chaining.
    • 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 SimulatedAnnealingAcceptanceStrategyOrBuilder
      Returns:
      The coolingScheduleStrategy.
    • setCoolingScheduleStrategy

      Determines the speed at which the temperature changes from initial to
      final.
      
      .operations_research.CoolingScheduleStrategy.Value cooling_schedule_strategy = 1;
      Parameters:
      value - The coolingScheduleStrategy to set.
      Returns:
      This builder for chaining.
    • clearCoolingScheduleStrategy

      public SimulatedAnnealingAcceptanceStrategy.Builder clearCoolingScheduleStrategy()
      Determines the speed at which the temperature changes from initial to
      final.
      
      .operations_research.CoolingScheduleStrategy.Value cooling_schedule_strategy = 1;
      Returns:
      This builder for chaining.
    • hasInitialTemperature

      public boolean hasInitialTemperature()
      The initial temperature. See CoolingScheduleStrategy for its usage.
      
      optional double initial_temperature = 2;
      Specified by:
      hasInitialTemperature in interface SimulatedAnnealingAcceptanceStrategyOrBuilder
      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 SimulatedAnnealingAcceptanceStrategyOrBuilder
      Returns:
      The initialTemperature.
    • setInitialTemperature

      public SimulatedAnnealingAcceptanceStrategy.Builder setInitialTemperature(double value)
      The initial temperature. See CoolingScheduleStrategy for its usage.
      
      optional double initial_temperature = 2;
      Parameters:
      value - The initialTemperature to set.
      Returns:
      This builder for chaining.
    • clearInitialTemperature

      public SimulatedAnnealingAcceptanceStrategy.Builder clearInitialTemperature()
      The initial temperature. See CoolingScheduleStrategy for its usage.
      
      optional double initial_temperature = 2;
      Returns:
      This builder for chaining.
    • hasFinalTemperature

      public boolean hasFinalTemperature()
      The final temperature. See CoolingScheduleStrategy for its usage.
      
      optional double final_temperature = 3;
      Specified by:
      hasFinalTemperature in interface SimulatedAnnealingAcceptanceStrategyOrBuilder
      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 SimulatedAnnealingAcceptanceStrategyOrBuilder
      Returns:
      The finalTemperature.
    • setFinalTemperature

      public SimulatedAnnealingAcceptanceStrategy.Builder setFinalTemperature(double value)
      The final temperature. See CoolingScheduleStrategy for its usage.
      
      optional double final_temperature = 3;
      Parameters:
      value - The finalTemperature to set.
      Returns:
      This builder for chaining.
    • clearFinalTemperature

      public SimulatedAnnealingAcceptanceStrategy.Builder clearFinalTemperature()
      The final temperature. See CoolingScheduleStrategy for its usage.
      
      optional double final_temperature = 3;
      Returns:
      This builder for chaining.
    • 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 SimulatedAnnealingAcceptanceStrategyOrBuilder
      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 SimulatedAnnealingAcceptanceStrategyOrBuilder
      Returns:
      The automaticTemperatures.
    • setAutomaticTemperatures

      public SimulatedAnnealingAcceptanceStrategy.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;
      Parameters:
      value - The automaticTemperatures to set.
      Returns:
      This builder for chaining.
    • clearAutomaticTemperatures

      public SimulatedAnnealingAcceptanceStrategy.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;
      Returns:
      This builder for chaining.