Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder Class Reference

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.

Protobuf type operations_research.SimulatedAnnealingAcceptanceStrategy

Definition at line 397 of file SimulatedAnnealingAcceptanceStrategy.java.

Inheritance diagram for com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder:
com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategyOrBuilder

Public Member Functions

Builder clear ()
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy getDefaultInstanceForType ()
com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy build ()
com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy buildPartial ()
Builder mergeFrom (com.google.protobuf.Message other)
Builder mergeFrom (com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy other)
final boolean isInitialized ()
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
int getCoolingScheduleStrategyValue ()
Builder setCoolingScheduleStrategyValue (int value)
com.google.ortools.constraintsolver.CoolingScheduleStrategy.Value getCoolingScheduleStrategy ()
Builder setCoolingScheduleStrategy (com.google.ortools.constraintsolver.CoolingScheduleStrategy.Value value)
Builder clearCoolingScheduleStrategy ()
boolean hasInitialTemperature ()
double getInitialTemperature ()
Builder setInitialTemperature (double value)
Builder clearInitialTemperature ()
boolean hasFinalTemperature ()
double getFinalTemperature ()
Builder setFinalTemperature (double value)
Builder clearFinalTemperature ()
boolean hasAutomaticTemperatures ()
boolean getAutomaticTemperatures ()
Builder setAutomaticTemperatures (boolean value)
Builder clearAutomaticTemperatures ()

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()

Member Function Documentation

◆ build()

com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.build ( )

Definition at line 447 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ buildPartial()

com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.buildPartial ( )

Definition at line 456 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ clear()

Builder com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.clear ( )

Definition at line 425 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ clearAutomaticTemperatures()

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

Definition at line 844 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ clearCoolingScheduleStrategy()

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

Definition at line 640 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ clearFinalTemperature()

Builder com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.clearFinalTemperature ( )
The final temperature. See CoolingScheduleStrategy for its usage.

optional double final_temperature = 3;

Returns
This builder for chaining.

Definition at line 752 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ clearInitialTemperature()

Builder com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.clearInitialTemperature ( )
The initial temperature. See CoolingScheduleStrategy for its usage.

optional double initial_temperature = 2;

Returns
This builder for chaining.

Definition at line 696 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ getAutomaticTemperatures()

boolean com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.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.SimulatedAnnealingAcceptanceStrategyOrBuilder.

Definition at line 799 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ getCoolingScheduleStrategy()

com.google.ortools.constraintsolver.CoolingScheduleStrategy.Value com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.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.SimulatedAnnealingAcceptanceStrategyOrBuilder.

Definition at line 610 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ getCoolingScheduleStrategyValue()

int com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.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.SimulatedAnnealingAcceptanceStrategyOrBuilder.

Definition at line 581 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ getDefaultInstanceForType()

com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.getDefaultInstanceForType ( )

Definition at line 442 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ getDescriptor()

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

Definition at line 402 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ getDescriptorForType()

com.google.protobuf.Descriptors.Descriptor com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.getDescriptorForType ( )

Definition at line 437 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ getFinalTemperature()

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

optional double final_temperature = 3;

Returns
The finalTemperature.

Implements com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategyOrBuilder.

Definition at line 725 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ getInitialTemperature()

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

optional double initial_temperature = 2;

Returns
The initialTemperature.

Implements com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategyOrBuilder.

Definition at line 669 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ hasAutomaticTemperatures()

boolean com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.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.SimulatedAnnealingAcceptanceStrategyOrBuilder.

Definition at line 778 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ hasFinalTemperature()

boolean com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.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.SimulatedAnnealingAcceptanceStrategyOrBuilder.

Definition at line 713 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ hasInitialTemperature()

boolean com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.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.SimulatedAnnealingAcceptanceStrategyOrBuilder.

Definition at line 657 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 408 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ isInitialized()

final boolean com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.isInitialized ( )

Definition at line 514 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ mergeFrom() [1/3]

Builder com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.mergeFrom ( com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy other)

Definition at line 494 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ mergeFrom() [2/3]

Builder com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.mergeFrom ( com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException

Definition at line 519 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ mergeFrom() [3/3]

Builder com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.mergeFrom ( com.google.protobuf.Message other)

Definition at line 485 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ setAutomaticTemperatures()

Builder com.google.ortools.constraintsolver.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
valueThe automaticTemperatures to set.
Returns
This builder for chaining.

Definition at line 820 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ setCoolingScheduleStrategy()

Builder com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.setCoolingScheduleStrategy ( com.google.ortools.constraintsolver.CoolingScheduleStrategy.Value value)
Determines the speed at which the temperature changes from initial to
final.

.operations_research.CoolingScheduleStrategy.Value cooling_schedule_strategy = 1;

Parameters
valueThe coolingScheduleStrategy to set.
Returns
This builder for chaining.

Definition at line 624 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ setCoolingScheduleStrategyValue()

Builder com.google.ortools.constraintsolver.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
valueThe enum numeric value on the wire for coolingScheduleStrategy to set.
Returns
This builder for chaining.

Definition at line 594 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ setFinalTemperature()

Builder com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.setFinalTemperature ( double value)
The final temperature. See CoolingScheduleStrategy for its usage.

optional double final_temperature = 3;

Parameters
valueThe finalTemperature to set.
Returns
This builder for chaining.

Definition at line 737 of file SimulatedAnnealingAcceptanceStrategy.java.

◆ setInitialTemperature()

Builder com.google.ortools.constraintsolver.SimulatedAnnealingAcceptanceStrategy.Builder.setInitialTemperature ( double value)
The initial temperature. See CoolingScheduleStrategy for its usage.

optional double initial_temperature = 2;

Parameters
valueThe initialTemperature to set.
Returns
This builder for chaining.

Definition at line 681 of file SimulatedAnnealingAcceptanceStrategy.java.


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