Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.constraintsolver.SimulatedAnnealingParametersOrBuilder Interface Reference
Inheritance diagram for com.google.ortools.constraintsolver.SimulatedAnnealingParametersOrBuilder:
com.google.ortools.constraintsolver.SimulatedAnnealingParameters com.google.ortools.constraintsolver.SimulatedAnnealingParameters.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 ()
 

Detailed Description

Definition at line 8 of file SimulatedAnnealingParametersOrBuilder.java.

Member Function Documentation

◆ getAutomaticTemperatures()

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

Implemented in com.google.ortools.constraintsolver.SimulatedAnnealingParameters.Builder, and com.google.ortools.constraintsolver.SimulatedAnnealingParameters.

◆ getCoolingScheduleStrategy()

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

.operations_research.CoolingScheduleStrategy.Value cooling_schedule_strategy = 1;

Returns
The coolingScheduleStrategy.

Implemented in com.google.ortools.constraintsolver.SimulatedAnnealingParameters.Builder, and com.google.ortools.constraintsolver.SimulatedAnnealingParameters.

◆ getCoolingScheduleStrategyValue()

int com.google.ortools.constraintsolver.SimulatedAnnealingParametersOrBuilder.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.

Implemented in com.google.ortools.constraintsolver.SimulatedAnnealingParameters.Builder, and com.google.ortools.constraintsolver.SimulatedAnnealingParameters.

◆ getFinalTemperature()

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

optional double final_temperature = 3;

Returns
The finalTemperature.

Implemented in com.google.ortools.constraintsolver.SimulatedAnnealingParameters.Builder, and com.google.ortools.constraintsolver.SimulatedAnnealingParameters.

◆ getInitialTemperature()

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

optional double initial_temperature = 2;

Returns
The initialTemperature.

Implemented in com.google.ortools.constraintsolver.SimulatedAnnealingParameters.Builder, and com.google.ortools.constraintsolver.SimulatedAnnealingParameters.

◆ hasAutomaticTemperatures()

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

Implemented in com.google.ortools.constraintsolver.SimulatedAnnealingParameters.Builder, and com.google.ortools.constraintsolver.SimulatedAnnealingParameters.

◆ hasFinalTemperature()

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

optional double final_temperature = 3;

Returns
Whether the finalTemperature field is set.

Implemented in com.google.ortools.constraintsolver.SimulatedAnnealingParameters.Builder, and com.google.ortools.constraintsolver.SimulatedAnnealingParameters.

◆ hasInitialTemperature()

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

optional double initial_temperature = 2;

Returns
Whether the initialTemperature field is set.

Implemented in com.google.ortools.constraintsolver.SimulatedAnnealingParameters.Builder, and com.google.ortools.constraintsolver.SimulatedAnnealingParameters.


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