Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters Class Referencesealed

Specifies the behavior of a simulated annealing acceptance strategy. More...

Inheritance diagram for Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters:

Public Member Functions

 SimulatedAnnealingParameters ()
 
 SimulatedAnnealingParameters (SimulatedAnnealingParameters other)
 
SimulatedAnnealingParameters Clone ()
 
void ClearInitialTemperature ()
 Clears the value of the "initial_temperature" field.
 
void ClearFinalTemperature ()
 Clears the value of the "final_temperature" field.
 
void ClearAutomaticTemperatures ()
 Clears the value of the "automatic_temperatures" field.
 
override bool Equals (object other)
 
bool Equals (SimulatedAnnealingParameters other)
 
override int GetHashCode ()
 
override string ToString ()
 
void WriteTo (pb::CodedOutputStream output)
 
int CalculateSize ()
 
void MergeFrom (SimulatedAnnealingParameters other)
 
void MergeFrom (pb::CodedInputStream input)
 

Static Public Attributes

const int CoolingScheduleStrategyFieldNumber = 1
 Field number for the "cooling_schedule_strategy" field.
 
const int InitialTemperatureFieldNumber = 2
 Field number for the "initial_temperature" field.
 
const int FinalTemperatureFieldNumber = 3
 Field number for the "final_temperature" field.
 
const int AutomaticTemperaturesFieldNumber = 4
 Field number for the "automatic_temperatures" field.
 

Properties

static pb::MessageParser< SimulatedAnnealingParametersParser [get]
 
static pbr::MessageDescriptor Descriptor [get]
 
global::Google.OrTools.ConstraintSolver.CoolingScheduleStrategy.Types.Value CoolingScheduleStrategy [get, set]
 Determines the speed at which the temperature changes from initial to final.
 
double InitialTemperature [get, set]
 The initial temperature. See CoolingScheduleStrategy for its usage.
 
bool HasInitialTemperature [get]
 Gets whether the "initial_temperature" field is set.
 
double FinalTemperature [get, set]
 The final temperature. See CoolingScheduleStrategy for its usage.
 
bool HasFinalTemperature [get]
 Gets whether the "final_temperature" field is set.
 
bool AutomaticTemperatures [get, set]
 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.
 
bool HasAutomaticTemperatures [get]
 Gets whether the "automatic_temperatures" field is set.
 

Detailed Description

Specifies the behavior of a simulated annealing acceptance strategy.

Definition at line 2362 of file RoutingIls.pb.cs.

Constructor & Destructor Documentation

◆ SimulatedAnnealingParameters() [1/2]

Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.SimulatedAnnealingParameters ( )
inline

Definition at line 2388 of file RoutingIls.pb.cs.

◆ SimulatedAnnealingParameters() [2/2]

Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.SimulatedAnnealingParameters ( SimulatedAnnealingParameters other)
inline

Definition at line 2396 of file RoutingIls.pb.cs.

Member Function Documentation

◆ CalculateSize()

int Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.CalculateSize ( )
inline

Definition at line 2624 of file RoutingIls.pb.cs.

◆ ClearAutomaticTemperatures()

void Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.ClearAutomaticTemperatures ( )
inline

Clears the value of the "automatic_temperatures" field.

Definition at line 2522 of file RoutingIls.pb.cs.

◆ ClearFinalTemperature()

void Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.ClearFinalTemperature ( )
inline

Clears the value of the "final_temperature" field.

Definition at line 2483 of file RoutingIls.pb.cs.

◆ ClearInitialTemperature()

void Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.ClearInitialTemperature ( )
inline

Clears the value of the "initial_temperature" field.

Definition at line 2453 of file RoutingIls.pb.cs.

◆ Clone()

SimulatedAnnealingParameters Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.Clone ( )
inline

Definition at line 2407 of file RoutingIls.pb.cs.

◆ Equals() [1/2]

override bool Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.Equals ( object other)
inline

Definition at line 2528 of file RoutingIls.pb.cs.

◆ Equals() [2/2]

bool Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.Equals ( SimulatedAnnealingParameters other)
inline

Definition at line 2534 of file RoutingIls.pb.cs.

◆ GetHashCode()

override int Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.GetHashCode ( )
inline

Definition at line 2550 of file RoutingIls.pb.cs.

◆ MergeFrom() [1/2]

void Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.MergeFrom ( pb.CodedInputStream input)
inline

Definition at line 2667 of file RoutingIls.pb.cs.

◆ MergeFrom() [2/2]

void Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.MergeFrom ( SimulatedAnnealingParameters other)
inline

Definition at line 2646 of file RoutingIls.pb.cs.

◆ ToString()

override string Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.ToString ( )
inline

Definition at line 2564 of file RoutingIls.pb.cs.

◆ WriteTo()

void Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.WriteTo ( pb.CodedOutputStream output)
inline

Definition at line 2570 of file RoutingIls.pb.cs.

Member Data Documentation

◆ AutomaticTemperaturesFieldNumber

const int Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.AutomaticTemperaturesFieldNumber = 4
static

Field number for the "automatic_temperatures" field.

Definition at line 2488 of file RoutingIls.pb.cs.

◆ CoolingScheduleStrategyFieldNumber

const int Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.CoolingScheduleStrategyFieldNumber = 1
static

Field number for the "cooling_schedule_strategy" field.

Definition at line 2412 of file RoutingIls.pb.cs.

◆ FinalTemperatureFieldNumber

const int Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.FinalTemperatureFieldNumber = 3
static

Field number for the "final_temperature" field.

Definition at line 2458 of file RoutingIls.pb.cs.

◆ InitialTemperatureFieldNumber

const int Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.InitialTemperatureFieldNumber = 2
static

Field number for the "initial_temperature" field.

Definition at line 2428 of file RoutingIls.pb.cs.

Property Documentation

◆ AutomaticTemperatures

bool Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.AutomaticTemperatures
getset

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

Definition at line 2506 of file RoutingIls.pb.cs.

◆ CoolingScheduleStrategy

global.Google.OrTools.ConstraintSolver.CoolingScheduleStrategy.Types.Value Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.CoolingScheduleStrategy
getset

Determines the speed at which the temperature changes from initial to final.

Definition at line 2420 of file RoutingIls.pb.cs.

◆ Descriptor

pbr.MessageDescriptor Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.Descriptor
staticget

Definition at line 2376 of file RoutingIls.pb.cs.

◆ FinalTemperature

double Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.FinalTemperature
getset

The final temperature. See CoolingScheduleStrategy for its usage.

Definition at line 2467 of file RoutingIls.pb.cs.

◆ HasAutomaticTemperatures

bool Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.HasAutomaticTemperatures
get

Gets whether the "automatic_temperatures" field is set.

Definition at line 2516 of file RoutingIls.pb.cs.

◆ HasFinalTemperature

bool Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.HasFinalTemperature
get

Gets whether the "final_temperature" field is set.

Definition at line 2477 of file RoutingIls.pb.cs.

◆ HasInitialTemperature

bool Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.HasInitialTemperature
get

Gets whether the "initial_temperature" field is set.

Definition at line 2447 of file RoutingIls.pb.cs.

◆ InitialTemperature

double Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.InitialTemperature
getset

The initial temperature. See CoolingScheduleStrategy for its usage.

Definition at line 2437 of file RoutingIls.pb.cs.

◆ Parser

pb.MessageParser<SimulatedAnnealingParameters> Google.OrTools.ConstraintSolver.SimulatedAnnealingParameters.Parser
staticget

Definition at line 2372 of file RoutingIls.pb.cs.


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