Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.constraintsolver.SimulatedAnnealingParameters Class Reference
Inheritance diagram for com.google.ortools.constraintsolver.SimulatedAnnealingParameters:
com.google.ortools.constraintsolver.SimulatedAnnealingParametersOrBuilder

Classes

class  Builder
 

Public Member Functions

int getCoolingScheduleStrategyValue ()
 
com.google.ortools.constraintsolver.CoolingScheduleStrategy.Value getCoolingScheduleStrategy ()
 
boolean hasInitialTemperature ()
 
double getInitialTemperature ()
 
boolean hasFinalTemperature ()
 
double getFinalTemperature ()
 
boolean hasAutomaticTemperatures ()
 
boolean getAutomaticTemperatures ()
 
final boolean isInitialized ()
 
void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
 
int getSerializedSize ()
 
boolean equals (final java.lang.Object obj)
 
int hashCode ()
 
Builder newBuilderForType ()
 
Builder toBuilder ()
 
com.google.protobuf.Parser< SimulatedAnnealingParametersgetParserForType ()
 
com.google.ortools.constraintsolver.SimulatedAnnealingParameters getDefaultInstanceForType ()
 

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 
static com.google.ortools.constraintsolver.SimulatedAnnealingParameters parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.constraintsolver.SimulatedAnnealingParameters parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.constraintsolver.SimulatedAnnealingParameters parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.constraintsolver.SimulatedAnnealingParameters parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.constraintsolver.SimulatedAnnealingParameters parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.constraintsolver.SimulatedAnnealingParameters parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.constraintsolver.SimulatedAnnealingParameters parseFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.constraintsolver.SimulatedAnnealingParameters parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.constraintsolver.SimulatedAnnealingParameters parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.constraintsolver.SimulatedAnnealingParameters parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.constraintsolver.SimulatedAnnealingParameters parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
 
static com.google.ortools.constraintsolver.SimulatedAnnealingParameters parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static Builder newBuilder ()
 
static Builder newBuilder (com.google.ortools.constraintsolver.SimulatedAnnealingParameters prototype)
 
static com.google.ortools.constraintsolver.SimulatedAnnealingParameters getDefaultInstance ()
 
static com.google.protobuf.Parser< SimulatedAnnealingParametersparser ()
 

Static Public Attributes

static final int COOLING_SCHEDULE_STRATEGY_FIELD_NUMBER = 1
 
static final int INITIAL_TEMPERATURE_FIELD_NUMBER = 2
 
static final int FINAL_TEMPERATURE_FIELD_NUMBER = 3
 
static final int AUTOMATIC_TEMPERATURES_FIELD_NUMBER = 4
 

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 
Builder newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent)
 

Detailed Description

Specifies the behavior of a simulated annealing acceptance strategy.

Protobuf type operations_research.SimulatedAnnealingParameters

Definition at line 15 of file SimulatedAnnealingParameters.java.

Member Function Documentation

◆ equals()

boolean com.google.ortools.constraintsolver.SimulatedAnnealingParameters.equals ( final java.lang.Object obj)

Definition at line 235 of file SimulatedAnnealingParameters.java.

◆ getAutomaticTemperatures()

boolean com.google.ortools.constraintsolver.SimulatedAnnealingParameters.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;

Returns
The automaticTemperatures.

Implements com.google.ortools.constraintsolver.SimulatedAnnealingParametersOrBuilder.

Definition at line 174 of file SimulatedAnnealingParameters.java.

◆ getCoolingScheduleStrategy()

com.google.ortools.constraintsolver.CoolingScheduleStrategy.Value com.google.ortools.constraintsolver.SimulatedAnnealingParameters.getCoolingScheduleStrategy ( )
Determines the speed at which the temperature changes from initial to
final.

.operations_research.CoolingScheduleStrategy.Value cooling_schedule_strategy = 1;

Returns
The coolingScheduleStrategy.

Implements com.google.ortools.constraintsolver.SimulatedAnnealingParametersOrBuilder.

Definition at line 74 of file SimulatedAnnealingParameters.java.

◆ getCoolingScheduleStrategyValue()

int com.google.ortools.constraintsolver.SimulatedAnnealingParameters.getCoolingScheduleStrategyValue ( )
Determines the speed at which the temperature changes from initial to
final.

.operations_research.CoolingScheduleStrategy.Value cooling_schedule_strategy = 1;

Returns
The enum numeric value on the wire for coolingScheduleStrategy.

Implements com.google.ortools.constraintsolver.SimulatedAnnealingParametersOrBuilder.

Definition at line 62 of file SimulatedAnnealingParameters.java.

◆ getDefaultInstance()

static com.google.ortools.constraintsolver.SimulatedAnnealingParameters com.google.ortools.constraintsolver.SimulatedAnnealingParameters.getDefaultInstance ( )
static

Definition at line 859 of file SimulatedAnnealingParameters.java.

◆ getDefaultInstanceForType()

com.google.ortools.constraintsolver.SimulatedAnnealingParameters com.google.ortools.constraintsolver.SimulatedAnnealingParameters.getDefaultInstanceForType ( )

Definition at line 895 of file SimulatedAnnealingParameters.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor com.google.ortools.constraintsolver.SimulatedAnnealingParameters.getDescriptor ( )
static

Definition at line 38 of file SimulatedAnnealingParameters.java.

◆ getFinalTemperature()

double com.google.ortools.constraintsolver.SimulatedAnnealingParameters.getFinalTemperature ( )
The final temperature. See CoolingScheduleStrategy for its usage.

optional double final_temperature = 3;

Returns
The finalTemperature.

Implements com.google.ortools.constraintsolver.SimulatedAnnealingParametersOrBuilder.

Definition at line 129 of file SimulatedAnnealingParameters.java.

◆ getInitialTemperature()

double com.google.ortools.constraintsolver.SimulatedAnnealingParameters.getInitialTemperature ( )
The initial temperature. See CoolingScheduleStrategy for its usage.

optional double initial_temperature = 2;

Returns
The initialTemperature.

Implements com.google.ortools.constraintsolver.SimulatedAnnealingParametersOrBuilder.

Definition at line 102 of file SimulatedAnnealingParameters.java.

◆ getParserForType()

com.google.protobuf.Parser< SimulatedAnnealingParameters > com.google.ortools.constraintsolver.SimulatedAnnealingParameters.getParserForType ( )

Definition at line 890 of file SimulatedAnnealingParameters.java.

◆ getSerializedSize()

int com.google.ortools.constraintsolver.SimulatedAnnealingParameters.getSerializedSize ( )

Definition at line 208 of file SimulatedAnnealingParameters.java.

◆ hasAutomaticTemperatures()

boolean com.google.ortools.constraintsolver.SimulatedAnnealingParameters.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;

Returns
Whether the automaticTemperatures field is set.

Implements com.google.ortools.constraintsolver.SimulatedAnnealingParametersOrBuilder.

Definition at line 153 of file SimulatedAnnealingParameters.java.

◆ hasFinalTemperature()

boolean com.google.ortools.constraintsolver.SimulatedAnnealingParameters.hasFinalTemperature ( )
The final temperature. See CoolingScheduleStrategy for its usage.

optional double final_temperature = 3;

Returns
Whether the finalTemperature field is set.

Implements com.google.ortools.constraintsolver.SimulatedAnnealingParametersOrBuilder.

Definition at line 117 of file SimulatedAnnealingParameters.java.

◆ hashCode()

int com.google.ortools.constraintsolver.SimulatedAnnealingParameters.hashCode ( )

Definition at line 267 of file SimulatedAnnealingParameters.java.

◆ hasInitialTemperature()

boolean com.google.ortools.constraintsolver.SimulatedAnnealingParameters.hasInitialTemperature ( )
The initial temperature. See CoolingScheduleStrategy for its usage.

optional double initial_temperature = 2;

Returns
Whether the initialTemperature field is set.

Implements com.google.ortools.constraintsolver.SimulatedAnnealingParametersOrBuilder.

Definition at line 90 of file SimulatedAnnealingParameters.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessage.FieldAccessorTable com.google.ortools.constraintsolver.SimulatedAnnealingParameters.internalGetFieldAccessorTable ( )
protected

Definition at line 44 of file SimulatedAnnealingParameters.java.

◆ isInitialized()

final boolean com.google.ortools.constraintsolver.SimulatedAnnealingParameters.isInitialized ( )

Definition at line 180 of file SimulatedAnnealingParameters.java.

◆ newBuilder() [1/2]

static Builder com.google.ortools.constraintsolver.SimulatedAnnealingParameters.newBuilder ( )
static

Definition at line 369 of file SimulatedAnnealingParameters.java.

◆ newBuilder() [2/2]

static Builder com.google.ortools.constraintsolver.SimulatedAnnealingParameters.newBuilder ( com.google.ortools.constraintsolver.SimulatedAnnealingParameters prototype)
static

Definition at line 372 of file SimulatedAnnealingParameters.java.

◆ newBuilderForType() [1/2]

Builder com.google.ortools.constraintsolver.SimulatedAnnealingParameters.newBuilderForType ( )

Definition at line 368 of file SimulatedAnnealingParameters.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.constraintsolver.SimulatedAnnealingParameters.newBuilderForType ( com.google.protobuf.GeneratedMessage.BuilderParent parent)
protected

Definition at line 382 of file SimulatedAnnealingParameters.java.

◆ parseDelimitedFrom() [1/2]

static com.google.ortools.constraintsolver.SimulatedAnnealingParameters com.google.ortools.constraintsolver.SimulatedAnnealingParameters.parseDelimitedFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 340 of file SimulatedAnnealingParameters.java.

◆ parseDelimitedFrom() [2/2]

static com.google.ortools.constraintsolver.SimulatedAnnealingParameters com.google.ortools.constraintsolver.SimulatedAnnealingParameters.parseDelimitedFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 346 of file SimulatedAnnealingParameters.java.

◆ parseFrom() [1/10]

static com.google.ortools.constraintsolver.SimulatedAnnealingParameters com.google.ortools.constraintsolver.SimulatedAnnealingParameters.parseFrom ( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 317 of file SimulatedAnnealingParameters.java.

◆ parseFrom() [2/10]

static com.google.ortools.constraintsolver.SimulatedAnnealingParameters com.google.ortools.constraintsolver.SimulatedAnnealingParameters.parseFrom ( byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 321 of file SimulatedAnnealingParameters.java.

◆ parseFrom() [3/10]

static com.google.ortools.constraintsolver.SimulatedAnnealingParameters com.google.ortools.constraintsolver.SimulatedAnnealingParameters.parseFrom ( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 306 of file SimulatedAnnealingParameters.java.

◆ parseFrom() [4/10]

static com.google.ortools.constraintsolver.SimulatedAnnealingParameters com.google.ortools.constraintsolver.SimulatedAnnealingParameters.parseFrom ( com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 311 of file SimulatedAnnealingParameters.java.

◆ parseFrom() [5/10]

static com.google.ortools.constraintsolver.SimulatedAnnealingParameters com.google.ortools.constraintsolver.SimulatedAnnealingParameters.parseFrom ( com.google.protobuf.CodedInputStream input) throws java.io.IOException
static

Definition at line 353 of file SimulatedAnnealingParameters.java.

◆ parseFrom() [6/10]

static com.google.ortools.constraintsolver.SimulatedAnnealingParameters com.google.ortools.constraintsolver.SimulatedAnnealingParameters.parseFrom ( com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 359 of file SimulatedAnnealingParameters.java.

◆ parseFrom() [7/10]

static com.google.ortools.constraintsolver.SimulatedAnnealingParameters com.google.ortools.constraintsolver.SimulatedAnnealingParameters.parseFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 327 of file SimulatedAnnealingParameters.java.

◆ parseFrom() [8/10]

static com.google.ortools.constraintsolver.SimulatedAnnealingParameters com.google.ortools.constraintsolver.SimulatedAnnealingParameters.parseFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 332 of file SimulatedAnnealingParameters.java.

◆ parseFrom() [9/10]

static com.google.ortools.constraintsolver.SimulatedAnnealingParameters com.google.ortools.constraintsolver.SimulatedAnnealingParameters.parseFrom ( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 295 of file SimulatedAnnealingParameters.java.

◆ parseFrom() [10/10]

static com.google.ortools.constraintsolver.SimulatedAnnealingParameters com.google.ortools.constraintsolver.SimulatedAnnealingParameters.parseFrom ( java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 300 of file SimulatedAnnealingParameters.java.

◆ parser()

static com.google.protobuf.Parser< SimulatedAnnealingParameters > com.google.ortools.constraintsolver.SimulatedAnnealingParameters.parser ( )
static

Definition at line 885 of file SimulatedAnnealingParameters.java.

◆ toBuilder()

Builder com.google.ortools.constraintsolver.SimulatedAnnealingParameters.toBuilder ( )

Definition at line 376 of file SimulatedAnnealingParameters.java.

◆ writeTo()

void com.google.ortools.constraintsolver.SimulatedAnnealingParameters.writeTo ( com.google.protobuf.CodedOutputStream output) throws java.io.IOException

Definition at line 190 of file SimulatedAnnealingParameters.java.

Member Data Documentation

◆ AUTOMATIC_TEMPERATURES_FIELD_NUMBER

final int com.google.ortools.constraintsolver.SimulatedAnnealingParameters.AUTOMATIC_TEMPERATURES_FIELD_NUMBER = 4
static

Definition at line 133 of file SimulatedAnnealingParameters.java.

◆ COOLING_SCHEDULE_STRATEGY_FIELD_NUMBER

final int com.google.ortools.constraintsolver.SimulatedAnnealingParameters.COOLING_SCHEDULE_STRATEGY_FIELD_NUMBER = 1
static

Definition at line 51 of file SimulatedAnnealingParameters.java.

◆ FINAL_TEMPERATURE_FIELD_NUMBER

final int com.google.ortools.constraintsolver.SimulatedAnnealingParameters.FINAL_TEMPERATURE_FIELD_NUMBER = 3
static

Definition at line 106 of file SimulatedAnnealingParameters.java.

◆ INITIAL_TEMPERATURE_FIELD_NUMBER

final int com.google.ortools.constraintsolver.SimulatedAnnealingParameters.INITIAL_TEMPERATURE_FIELD_NUMBER = 2
static

Definition at line 79 of file SimulatedAnnealingParameters.java.


The documentation for this class was generated from the following file: