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

Acceptance strategy in which solutions are accepted with a probability that depends on its quality and on the current state of the search. More...

Detailed Description

Acceptance strategy in which solutions are accepted with a probability that depends on its quality and on the current state of the search.

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

Inheritance diagram for Google.OrTools.ConstraintSolver.SimulatedAnnealingAcceptanceStrategy:

Public Member Functions

 SimulatedAnnealingAcceptanceStrategy ()
 SimulatedAnnealingAcceptanceStrategy (SimulatedAnnealingAcceptanceStrategy other)
SimulatedAnnealingAcceptanceStrategy 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 (SimulatedAnnealingAcceptanceStrategy other)
override int GetHashCode ()
override string ToString ()
void WriteTo (pb::CodedOutputStream output)
int CalculateSize ()
void MergeFrom (SimulatedAnnealingAcceptanceStrategy 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< SimulatedAnnealingAcceptanceStrategyParser [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.

Constructor & Destructor Documentation

◆ SimulatedAnnealingAcceptanceStrategy() [1/2]

Google.OrTools.ConstraintSolver.SimulatedAnnealingAcceptanceStrategy.SimulatedAnnealingAcceptanceStrategy ( )
inline

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

◆ SimulatedAnnealingAcceptanceStrategy() [2/2]

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

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

Member Function Documentation

◆ CalculateSize()

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

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

◆ ClearAutomaticTemperatures()

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

Clears the value of the "automatic_temperatures" field.

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

◆ ClearFinalTemperature()

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

Clears the value of the "final_temperature" field.

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

◆ ClearInitialTemperature()

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

Clears the value of the "initial_temperature" field.

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

◆ Clone()

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

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

◆ Equals() [1/2]

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

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

◆ Equals() [2/2]

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

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

◆ GetHashCode()

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

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

◆ MergeFrom() [1/2]

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

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

◆ MergeFrom() [2/2]

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

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

◆ ToString()

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

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

◆ WriteTo()

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

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

Member Data Documentation

◆ AutomaticTemperaturesFieldNumber

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

Field number for the "automatic_temperatures" field.

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

◆ CoolingScheduleStrategyFieldNumber

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

Field number for the "cooling_schedule_strategy" field.

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

◆ FinalTemperatureFieldNumber

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

Field number for the "final_temperature" field.

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

◆ InitialTemperatureFieldNumber

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

Field number for the "initial_temperature" field.

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

Property Documentation

◆ AutomaticTemperatures

bool Google.OrTools.ConstraintSolver.SimulatedAnnealingAcceptanceStrategy.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 3328 of file RoutingIls.pb.cs.

◆ CoolingScheduleStrategy

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

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

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

◆ Descriptor

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

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

◆ FinalTemperature

double Google.OrTools.ConstraintSolver.SimulatedAnnealingAcceptanceStrategy.FinalTemperature
getset

The final temperature. See CoolingScheduleStrategy for its usage.

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

◆ HasAutomaticTemperatures

bool Google.OrTools.ConstraintSolver.SimulatedAnnealingAcceptanceStrategy.HasAutomaticTemperatures
get

Gets whether the "automatic_temperatures" field is set.

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

◆ HasFinalTemperature

bool Google.OrTools.ConstraintSolver.SimulatedAnnealingAcceptanceStrategy.HasFinalTemperature
get

Gets whether the "final_temperature" field is set.

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

◆ HasInitialTemperature

bool Google.OrTools.ConstraintSolver.SimulatedAnnealingAcceptanceStrategy.HasInitialTemperature
get

Gets whether the "initial_temperature" field is set.

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

◆ InitialTemperature

double Google.OrTools.ConstraintSolver.SimulatedAnnealingAcceptanceStrategy.InitialTemperature
getset

The initial temperature. See CoolingScheduleStrategy for its usage.

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

◆ Parser

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

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


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