Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.constraintsolver.RoutingModelParameters.Builder Class Reference
Inheritance diagram for com.google.ortools.constraintsolver.RoutingModelParameters.Builder:
com.google.ortools.constraintsolver.RoutingModelParametersOrBuilder

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.constraintsolver.RoutingModelParameters getDefaultInstanceForType ()
 
com.google.ortools.constraintsolver.RoutingModelParameters build ()
 
com.google.ortools.constraintsolver.RoutingModelParameters buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.constraintsolver.RoutingModelParameters other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
boolean hasSolverParameters ()
 
com.google.ortools.constraintsolver.ConstraintSolverParameters getSolverParameters ()
 
Builder setSolverParameters (com.google.ortools.constraintsolver.ConstraintSolverParameters value)
 
Builder setSolverParameters (com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder builderForValue)
 
Builder mergeSolverParameters (com.google.ortools.constraintsolver.ConstraintSolverParameters value)
 
Builder clearSolverParameters ()
 
com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder getSolverParametersBuilder ()
 
com.google.ortools.constraintsolver.ConstraintSolverParametersOrBuilder getSolverParametersOrBuilder ()
 
boolean getReduceVehicleCostModel ()
 
Builder setReduceVehicleCostModel (boolean value)
 
Builder clearReduceVehicleCostModel ()
 
int getMaxCallbackCacheSize ()
 
Builder setMaxCallbackCacheSize (int value)
 
Builder clearMaxCallbackCacheSize ()
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.RoutingModelParametersOrBuilder

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

Parameters which have to be set when creating a RoutingModel.

Protobuf type operations_research.RoutingModelParameters

Definition at line 313 of file RoutingModelParameters.java.

Member Function Documentation

◆ build()

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

Definition at line 372 of file RoutingModelParameters.java.

◆ buildPartial()

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

Definition at line 381 of file RoutingModelParameters.java.

◆ clear()

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

Definition at line 347 of file RoutingModelParameters.java.

◆ clearMaxCallbackCacheSize()

Builder com.google.ortools.constraintsolver.RoutingModelParameters.Builder.clearMaxCallbackCacheSize ( )
Cache callback calls if the number of nodes in the model is less or equal
to this value.

int32 max_callback_cache_size = 3;

Returns
This builder for chaining.

Definition at line 737 of file RoutingModelParameters.java.

◆ clearReduceVehicleCostModel()

Builder com.google.ortools.constraintsolver.RoutingModelParameters.Builder.clearReduceVehicleCostModel ( )
Advanced settings.
If set to true reduction of the underlying constraint model will be
attempted when all vehicles have exactly the same cost structure. This can
result in significant speedups.

bool reduce_vehicle_cost_model = 2;

Returns
This builder for chaining.

Definition at line 690 of file RoutingModelParameters.java.

◆ clearSolverParameters()

Builder com.google.ortools.constraintsolver.RoutingModelParameters.Builder.clearSolverParameters ( )
Parameters to use in the underlying constraint solver.

.operations_research.ConstraintSolverParameters solver_parameters = 1;

Definition at line 586 of file RoutingModelParameters.java.

◆ getDefaultInstanceForType()

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

Definition at line 367 of file RoutingModelParameters.java.

◆ getDescriptor()

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

Definition at line 318 of file RoutingModelParameters.java.

◆ getDescriptorForType()

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

Definition at line 362 of file RoutingModelParameters.java.

◆ getMaxCallbackCacheSize()

int com.google.ortools.constraintsolver.RoutingModelParameters.Builder.getMaxCallbackCacheSize ( )
Cache callback calls if the number of nodes in the model is less or equal
to this value.

int32 max_callback_cache_size = 3;

Returns
The maxCallbackCacheSize.

Implements com.google.ortools.constraintsolver.RoutingModelParametersOrBuilder.

Definition at line 708 of file RoutingModelParameters.java.

◆ getReduceVehicleCostModel()

boolean com.google.ortools.constraintsolver.RoutingModelParameters.Builder.getReduceVehicleCostModel ( )
Advanced settings.
If set to true reduction of the underlying constraint model will be
attempted when all vehicles have exactly the same cost structure. This can
result in significant speedups.

bool reduce_vehicle_cost_model = 2;

Returns
The reduceVehicleCostModel.

Implements com.google.ortools.constraintsolver.RoutingModelParametersOrBuilder.

Definition at line 657 of file RoutingModelParameters.java.

◆ getSolverParameters()

com.google.ortools.constraintsolver.ConstraintSolverParameters com.google.ortools.constraintsolver.RoutingModelParameters.Builder.getSolverParameters ( )
Parameters to use in the underlying constraint solver.

.operations_research.ConstraintSolverParameters solver_parameters = 1;

Returns
The solverParameters.

Implements com.google.ortools.constraintsolver.RoutingModelParametersOrBuilder.

Definition at line 509 of file RoutingModelParameters.java.

◆ getSolverParametersBuilder()

com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder com.google.ortools.constraintsolver.RoutingModelParameters.Builder.getSolverParametersBuilder ( )
Parameters to use in the underlying constraint solver.

.operations_research.ConstraintSolverParameters solver_parameters = 1;

Definition at line 603 of file RoutingModelParameters.java.

◆ getSolverParametersOrBuilder()

com.google.ortools.constraintsolver.ConstraintSolverParametersOrBuilder com.google.ortools.constraintsolver.RoutingModelParameters.Builder.getSolverParametersOrBuilder ( )
Parameters to use in the underlying constraint solver.

.operations_research.ConstraintSolverParameters solver_parameters = 1;

Implements com.google.ortools.constraintsolver.RoutingModelParametersOrBuilder.

Definition at line 615 of file RoutingModelParameters.java.

◆ hasSolverParameters()

boolean com.google.ortools.constraintsolver.RoutingModelParameters.Builder.hasSolverParameters ( )
Parameters to use in the underlying constraint solver.

.operations_research.ConstraintSolverParameters solver_parameters = 1;

Returns
Whether the solverParameters field is set.

Implements com.google.ortools.constraintsolver.RoutingModelParametersOrBuilder.

Definition at line 498 of file RoutingModelParameters.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 324 of file RoutingModelParameters.java.

◆ isInitialized()

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

Definition at line 433 of file RoutingModelParameters.java.

◆ mergeFrom() [1/3]

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

Definition at line 416 of file RoutingModelParameters.java.

◆ mergeFrom() [2/3]

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

Definition at line 438 of file RoutingModelParameters.java.

◆ mergeFrom() [3/3]

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

Definition at line 407 of file RoutingModelParameters.java.

◆ mergeSolverParameters()

Builder com.google.ortools.constraintsolver.RoutingModelParameters.Builder.mergeSolverParameters ( com.google.ortools.constraintsolver.ConstraintSolverParameters value)
Parameters to use in the underlying constraint solver.

.operations_research.ConstraintSolverParameters solver_parameters = 1;

Definition at line 561 of file RoutingModelParameters.java.

◆ setMaxCallbackCacheSize()

Builder com.google.ortools.constraintsolver.RoutingModelParameters.Builder.setMaxCallbackCacheSize ( int value)
Cache callback calls if the number of nodes in the model is less or equal
to this value.

int32 max_callback_cache_size = 3;

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

Definition at line 721 of file RoutingModelParameters.java.

◆ setReduceVehicleCostModel()

Builder com.google.ortools.constraintsolver.RoutingModelParameters.Builder.setReduceVehicleCostModel ( boolean value)
Advanced settings.
If set to true reduction of the underlying constraint model will be
attempted when all vehicles have exactly the same cost structure. This can
result in significant speedups.

bool reduce_vehicle_cost_model = 2;

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

Definition at line 672 of file RoutingModelParameters.java.

◆ setSolverParameters() [1/2]

Builder com.google.ortools.constraintsolver.RoutingModelParameters.Builder.setSolverParameters ( com.google.ortools.constraintsolver.ConstraintSolverParameters value)
Parameters to use in the underlying constraint solver.

.operations_research.ConstraintSolverParameters solver_parameters = 1;

Definition at line 523 of file RoutingModelParameters.java.

◆ setSolverParameters() [2/2]

Builder com.google.ortools.constraintsolver.RoutingModelParameters.Builder.setSolverParameters ( com.google.ortools.constraintsolver.ConstraintSolverParameters.Builder builderForValue)
Parameters to use in the underlying constraint solver.

.operations_research.ConstraintSolverParameters solver_parameters = 1;

Definition at line 543 of file RoutingModelParameters.java.


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