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

Detailed Description

Parameters used to configure local cheapest insertion heuristics.

Protobuf type operations_research.LocalCheapestInsertionParameters

Definition at line 818 of file LocalCheapestInsertionParameters.java.

Inheritance diagram for com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder:
com.google.ortools.constraintsolver.LocalCheapestInsertionParametersOrBuilder

Public Member Functions

Builder clear ()
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
com.google.ortools.constraintsolver.LocalCheapestInsertionParameters getDefaultInstanceForType ()
com.google.ortools.constraintsolver.LocalCheapestInsertionParameters build ()
com.google.ortools.constraintsolver.LocalCheapestInsertionParameters buildPartial ()
Builder mergeFrom (com.google.protobuf.Message other)
Builder mergeFrom (com.google.ortools.constraintsolver.LocalCheapestInsertionParameters other)
final boolean isInitialized ()
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
int getPickupDeliveryStrategyValue ()
Builder setPickupDeliveryStrategyValue (int value)
com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.PairInsertionStrategy getPickupDeliveryStrategy ()
Builder setPickupDeliveryStrategy (com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.PairInsertionStrategy value)
Builder clearPickupDeliveryStrategy ()
java.util.List< com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingPropertygetInsertionSortingPropertiesList ()
int getInsertionSortingPropertiesCount ()
com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty getInsertionSortingProperties (int index)
Builder setInsertionSortingProperties (int index, com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty value)
Builder addInsertionSortingProperties (com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty value)
Builder addAllInsertionSortingProperties (java.lang.Iterable<? extends com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty > values)
Builder clearInsertionSortingProperties ()
java.util.List< java.lang.Integer > getInsertionSortingPropertiesValueList ()
int getInsertionSortingPropertiesValue (int index)
Builder setInsertionSortingPropertiesValue (int index, int value)
Builder addInsertionSortingPropertiesValue (int value)
Builder addAllInsertionSortingPropertiesValue (java.lang.Iterable< java.lang.Integer > values)

Static Public Member Functions

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

Protected Member Functions

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

Member Function Documentation

◆ addAllInsertionSortingProperties()

Builder com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.addAllInsertionSortingProperties ( java.lang.Iterable<? extends com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty > values)
The properties used to sort insertion entries in the local cheapest
insertion heuristic, in *decreasing* order of priority. The properties
listed here are applied hierarchically, from highest to lowest priority.
When no properties are provided
(SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY)
is used by default.

repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;

Parameters
valuesThe insertionSortingProperties to add.
Returns
This builder for chaining.

Definition at line 1174 of file LocalCheapestInsertionParameters.java.

◆ addAllInsertionSortingPropertiesValue()

Builder com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.addAllInsertionSortingPropertiesValue ( java.lang.Iterable< java.lang.Integer > values)
The properties used to sort insertion entries in the local cheapest
insertion heuristic, in *decreasing* order of priority. The properties
listed here are applied hierarchically, from highest to lowest priority.
When no properties are provided
(SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY)
is used by default.

repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;

Parameters
valuesThe enum numeric values on the wire for insertionSortingProperties to add.
Returns
This builder for chaining.

Definition at line 1293 of file LocalCheapestInsertionParameters.java.

◆ addInsertionSortingProperties()

Builder com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.addInsertionSortingProperties ( com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty value)
The properties used to sort insertion entries in the local cheapest
insertion heuristic, in *decreasing* order of priority. The properties
listed here are applied hierarchically, from highest to lowest priority.
When no properties are provided
(SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY)
is used by default.

repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;

Parameters
valueThe insertionSortingProperties to add.
Returns
This builder for chaining.

Definition at line 1153 of file LocalCheapestInsertionParameters.java.

◆ addInsertionSortingPropertiesValue()

Builder com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.addInsertionSortingPropertiesValue ( int value)
The properties used to sort insertion entries in the local cheapest
insertion heuristic, in *decreasing* order of priority. The properties
listed here are applied hierarchically, from highest to lowest priority.
When no properties are provided
(SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY)
is used by default.

repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;

Parameters
valueThe enum numeric value on the wire for insertionSortingProperties to add.
Returns
This builder for chaining.

Definition at line 1273 of file LocalCheapestInsertionParameters.java.

◆ build()

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

Definition at line 866 of file LocalCheapestInsertionParameters.java.

◆ buildPartial()

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

Definition at line 875 of file LocalCheapestInsertionParameters.java.

◆ clear()

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

Definition at line 846 of file LocalCheapestInsertionParameters.java.

◆ clearInsertionSortingProperties()

Builder com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.clearInsertionSortingProperties ( )
The properties used to sort insertion entries in the local cheapest
insertion heuristic, in *decreasing* order of priority. The properties
listed here are applied hierarchically, from highest to lowest priority.
When no properties are provided
(SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY)
is used by default.

repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;

Returns
This builder for chaining.

Definition at line 1196 of file LocalCheapestInsertionParameters.java.

◆ clearPickupDeliveryStrategy()

Builder com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.clearPickupDeliveryStrategy ( )
Choice of insertion strategy for pickup/delivery pairs, used in local
cheapest insertion, both first solution heuristic and LNS.

.operations_research.LocalCheapestInsertionParameters.PairInsertionStrategy pickup_delivery_strategy = 1;

Returns
This builder for chaining.

Definition at line 1052 of file LocalCheapestInsertionParameters.java.

◆ getDefaultInstanceForType()

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

Definition at line 861 of file LocalCheapestInsertionParameters.java.

◆ getDescriptor()

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

Definition at line 823 of file LocalCheapestInsertionParameters.java.

◆ getDescriptorForType()

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

Definition at line 856 of file LocalCheapestInsertionParameters.java.

◆ getInsertionSortingProperties()

com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.getInsertionSortingProperties ( int index)
The properties used to sort insertion entries in the local cheapest
insertion heuristic, in *decreasing* order of priority. The properties
listed here are applied hierarchically, from highest to lowest priority.
When no properties are provided
(SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY)
is used by default.

repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;

Parameters
indexThe index of the element to return.
Returns
The insertionSortingProperties at the given index.

Implements com.google.ortools.constraintsolver.LocalCheapestInsertionParametersOrBuilder.

Definition at line 1113 of file LocalCheapestInsertionParameters.java.

◆ getInsertionSortingPropertiesCount()

int com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.getInsertionSortingPropertiesCount ( )
The properties used to sort insertion entries in the local cheapest
insertion heuristic, in *decreasing* order of priority. The properties
listed here are applied hierarchically, from highest to lowest priority.
When no properties are provided
(SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY)
is used by default.

repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;

Returns
The count of insertionSortingProperties.

Implements com.google.ortools.constraintsolver.LocalCheapestInsertionParametersOrBuilder.

Definition at line 1096 of file LocalCheapestInsertionParameters.java.

◆ getInsertionSortingPropertiesList()

java.util.List< com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty > com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.getInsertionSortingPropertiesList ( )
The properties used to sort insertion entries in the local cheapest
insertion heuristic, in *decreasing* order of priority. The properties
listed here are applied hierarchically, from highest to lowest priority.
When no properties are provided
(SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY)
is used by default.

repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;

Returns
A list containing the insertionSortingProperties.

Implements com.google.ortools.constraintsolver.LocalCheapestInsertionParametersOrBuilder.

Definition at line 1079 of file LocalCheapestInsertionParameters.java.

◆ getInsertionSortingPropertiesValue()

int com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.getInsertionSortingPropertiesValue ( int index)
The properties used to sort insertion entries in the local cheapest
insertion heuristic, in *decreasing* order of priority. The properties
listed here are applied hierarchically, from highest to lowest priority.
When no properties are provided
(SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY)
is used by default.

repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;

Parameters
indexThe index of the value to return.
Returns
The enum numeric value on the wire of insertionSortingProperties at the given index.

Implements com.google.ortools.constraintsolver.LocalCheapestInsertionParametersOrBuilder.

Definition at line 1234 of file LocalCheapestInsertionParameters.java.

◆ getInsertionSortingPropertiesValueList()

java.util.List< java.lang.Integer > com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.getInsertionSortingPropertiesValueList ( )
The properties used to sort insertion entries in the local cheapest
insertion heuristic, in *decreasing* order of priority. The properties
listed here are applied hierarchically, from highest to lowest priority.
When no properties are provided
(SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY)
is used by default.

repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;

Returns
A list containing the enum numeric values on the wire for insertionSortingProperties.

Implements com.google.ortools.constraintsolver.LocalCheapestInsertionParametersOrBuilder.

Definition at line 1216 of file LocalCheapestInsertionParameters.java.

◆ getPickupDeliveryStrategy()

com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.PairInsertionStrategy com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.getPickupDeliveryStrategy ( )
Choice of insertion strategy for pickup/delivery pairs, used in local
cheapest insertion, both first solution heuristic and LNS.

.operations_research.LocalCheapestInsertionParameters.PairInsertionStrategy pickup_delivery_strategy = 1;

Returns
The pickupDeliveryStrategy.

Implements com.google.ortools.constraintsolver.LocalCheapestInsertionParametersOrBuilder.

Definition at line 1022 of file LocalCheapestInsertionParameters.java.

◆ getPickupDeliveryStrategyValue()

int com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.getPickupDeliveryStrategyValue ( )
Choice of insertion strategy for pickup/delivery pairs, used in local
cheapest insertion, both first solution heuristic and LNS.

.operations_research.LocalCheapestInsertionParameters.PairInsertionStrategy pickup_delivery_strategy = 1;

Returns
The enum numeric value on the wire for pickupDeliveryStrategy.

Implements com.google.ortools.constraintsolver.LocalCheapestInsertionParametersOrBuilder.

Definition at line 993 of file LocalCheapestInsertionParameters.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 829 of file LocalCheapestInsertionParameters.java.

◆ isInitialized()

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

Definition at line 925 of file LocalCheapestInsertionParameters.java.

◆ mergeFrom() [1/3]

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

Definition at line 903 of file LocalCheapestInsertionParameters.java.

◆ mergeFrom() [2/3]

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

Definition at line 930 of file LocalCheapestInsertionParameters.java.

◆ mergeFrom() [3/3]

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

Definition at line 894 of file LocalCheapestInsertionParameters.java.

◆ setInsertionSortingProperties()

Builder com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.setInsertionSortingProperties ( int index,
com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.InsertionSortingProperty value )
The properties used to sort insertion entries in the local cheapest
insertion heuristic, in *decreasing* order of priority. The properties
listed here are applied hierarchically, from highest to lowest priority.
When no properties are provided
(SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY)
is used by default.

repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;

Parameters
indexThe index to set the value at.
valueThe insertionSortingProperties to set.
Returns
This builder for chaining.

Definition at line 1131 of file LocalCheapestInsertionParameters.java.

◆ setInsertionSortingPropertiesValue()

Builder com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.setInsertionSortingPropertiesValue ( int index,
int value )
The properties used to sort insertion entries in the local cheapest
insertion heuristic, in *decreasing* order of priority. The properties
listed here are applied hierarchically, from highest to lowest priority.
When no properties are provided
(SORTING_PROPERTY_ALLOWED_VEHICLES, SORTING_PROPERTY_PENALTY)
is used by default.

repeated .operations_research.LocalCheapestInsertionParameters.InsertionSortingProperty insertion_sorting_properties = 2;

Parameters
indexThe index to set the value at.
valueThe enum numeric value on the wire for insertionSortingProperties to set.
Returns
This builder for chaining.

Definition at line 1252 of file LocalCheapestInsertionParameters.java.

◆ setPickupDeliveryStrategy()

Builder com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.setPickupDeliveryStrategy ( com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.PairInsertionStrategy value)
Choice of insertion strategy for pickup/delivery pairs, used in local
cheapest insertion, both first solution heuristic and LNS.

.operations_research.LocalCheapestInsertionParameters.PairInsertionStrategy pickup_delivery_strategy = 1;

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

Definition at line 1036 of file LocalCheapestInsertionParameters.java.

◆ setPickupDeliveryStrategyValue()

Builder com.google.ortools.constraintsolver.LocalCheapestInsertionParameters.Builder.setPickupDeliveryStrategyValue ( int value)
Choice of insertion strategy for pickup/delivery pairs, used in local
cheapest insertion, both first solution heuristic and LNS.

.operations_research.LocalCheapestInsertionParameters.PairInsertionStrategy pickup_delivery_strategy = 1;

Parameters
valueThe enum numeric value on the wire for pickupDeliveryStrategy to set.
Returns
This builder for chaining.

Definition at line 1006 of file LocalCheapestInsertionParameters.java.


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