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

Detailed Description

Parameters which have to be set when creating a RoutingModel.

Protobuf type operations_research.RoutingModelParameters

Definition at line 16 of file RoutingModelParameters.java.

Inheritance diagram for com.google.ortools.constraintsolver.RoutingModelParameters:
com.google.ortools.constraintsolver.RoutingModelParametersOrBuilder

Classes

class  Builder

Public Member Functions

boolean hasSolverParameters ()
com.google.ortools.constraintsolver.ConstraintSolverParameters getSolverParameters ()
com.google.ortools.constraintsolver.ConstraintSolverParametersOrBuilder getSolverParametersOrBuilder ()
boolean getReduceVehicleCostModel ()
int getMaxCallbackCacheSize ()
final boolean isInitialized ()
void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
int getSerializedSize ()
boolean equals (final java.lang.Object obj)
int hashCode ()
Builder newBuilderForType ()
Builder toBuilder ()
com.google.protobuf.Parser< RoutingModelParametersgetParserForType ()
com.google.ortools.constraintsolver.RoutingModelParameters getDefaultInstanceForType ()

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
static com.google.ortools.constraintsolver.RoutingModelParameters parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.constraintsolver.RoutingModelParameters parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.constraintsolver.RoutingModelParameters parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.constraintsolver.RoutingModelParameters parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.constraintsolver.RoutingModelParameters parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.constraintsolver.RoutingModelParameters parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.constraintsolver.RoutingModelParameters parseFrom (java.io.InputStream input) throws java.io.IOException
static com.google.ortools.constraintsolver.RoutingModelParameters parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static com.google.ortools.constraintsolver.RoutingModelParameters parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
static com.google.ortools.constraintsolver.RoutingModelParameters parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static com.google.ortools.constraintsolver.RoutingModelParameters parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
static com.google.ortools.constraintsolver.RoutingModelParameters parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static Builder newBuilder ()
static Builder newBuilder (com.google.ortools.constraintsolver.RoutingModelParameters prototype)
static com.google.ortools.constraintsolver.RoutingModelParameters getDefaultInstance ()
static com.google.protobuf.Parser< RoutingModelParametersparser ()

Static Public Attributes

static final int SOLVER_PARAMETERS_FIELD_NUMBER = 1
static final int REDUCE_VEHICLE_COST_MODEL_FIELD_NUMBER = 2
static final int MAX_CALLBACK_CACHE_SIZE_FIELD_NUMBER = 3

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
Builder newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent)

Member Function Documentation

◆ equals()

boolean com.google.ortools.constraintsolver.RoutingModelParameters.equals ( final java.lang.Object obj)

Definition at line 173 of file RoutingModelParameters.java.

◆ getDefaultInstance()

com.google.ortools.constraintsolver.RoutingModelParameters com.google.ortools.constraintsolver.RoutingModelParameters.getDefaultInstance ( )
static

Definition at line 755 of file RoutingModelParameters.java.

◆ getDefaultInstanceForType()

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

Definition at line 791 of file RoutingModelParameters.java.

◆ getDescriptor()

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

Definition at line 38 of file RoutingModelParameters.java.

◆ getMaxCallbackCacheSize()

int com.google.ortools.constraintsolver.RoutingModelParameters.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 119 of file RoutingModelParameters.java.

◆ getParserForType()

com.google.protobuf.Parser< RoutingModelParameters > com.google.ortools.constraintsolver.RoutingModelParameters.getParserForType ( )

Definition at line 786 of file RoutingModelParameters.java.

◆ getReduceVehicleCostModel()

boolean com.google.ortools.constraintsolver.RoutingModelParameters.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 103 of file RoutingModelParameters.java.

◆ getSerializedSize()

int com.google.ortools.constraintsolver.RoutingModelParameters.getSerializedSize ( )

Definition at line 150 of file RoutingModelParameters.java.

◆ getSolverParameters()

com.google.ortools.constraintsolver.ConstraintSolverParameters com.google.ortools.constraintsolver.RoutingModelParameters.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 74 of file RoutingModelParameters.java.

◆ getSolverParametersOrBuilder()

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

.operations_research.ConstraintSolverParameters solver_parameters = 1;

Implements com.google.ortools.constraintsolver.RoutingModelParametersOrBuilder.

Definition at line 85 of file RoutingModelParameters.java.

◆ hashCode()

int com.google.ortools.constraintsolver.RoutingModelParameters.hashCode ( )

Definition at line 196 of file RoutingModelParameters.java.

◆ hasSolverParameters()

boolean com.google.ortools.constraintsolver.RoutingModelParameters.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 62 of file RoutingModelParameters.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 44 of file RoutingModelParameters.java.

◆ isInitialized()

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

Definition at line 125 of file RoutingModelParameters.java.

◆ newBuilder() [1/2]

Builder com.google.ortools.constraintsolver.RoutingModelParameters.newBuilder ( )
static

Definition at line 290 of file RoutingModelParameters.java.

◆ newBuilder() [2/2]

Builder com.google.ortools.constraintsolver.RoutingModelParameters.newBuilder ( com.google.ortools.constraintsolver.RoutingModelParameters prototype)
static

Definition at line 293 of file RoutingModelParameters.java.

◆ newBuilderForType() [1/2]

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

Definition at line 289 of file RoutingModelParameters.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.constraintsolver.RoutingModelParameters.newBuilderForType ( com.google.protobuf.GeneratedMessage.BuilderParent parent)
protected

Definition at line 303 of file RoutingModelParameters.java.

◆ parseDelimitedFrom() [1/2]

com.google.ortools.constraintsolver.RoutingModelParameters com.google.ortools.constraintsolver.RoutingModelParameters.parseDelimitedFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 261 of file RoutingModelParameters.java.

◆ parseDelimitedFrom() [2/2]

com.google.ortools.constraintsolver.RoutingModelParameters com.google.ortools.constraintsolver.RoutingModelParameters.parseDelimitedFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 267 of file RoutingModelParameters.java.

◆ parseFrom() [1/10]

com.google.ortools.constraintsolver.RoutingModelParameters com.google.ortools.constraintsolver.RoutingModelParameters.parseFrom ( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 238 of file RoutingModelParameters.java.

◆ parseFrom() [2/10]

com.google.ortools.constraintsolver.RoutingModelParameters com.google.ortools.constraintsolver.RoutingModelParameters.parseFrom ( byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 242 of file RoutingModelParameters.java.

◆ parseFrom() [3/10]

com.google.ortools.constraintsolver.RoutingModelParameters com.google.ortools.constraintsolver.RoutingModelParameters.parseFrom ( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 227 of file RoutingModelParameters.java.

◆ parseFrom() [4/10]

com.google.ortools.constraintsolver.RoutingModelParameters com.google.ortools.constraintsolver.RoutingModelParameters.parseFrom ( com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 232 of file RoutingModelParameters.java.

◆ parseFrom() [5/10]

com.google.ortools.constraintsolver.RoutingModelParameters com.google.ortools.constraintsolver.RoutingModelParameters.parseFrom ( com.google.protobuf.CodedInputStream input) throws java.io.IOException
static

Definition at line 274 of file RoutingModelParameters.java.

◆ parseFrom() [6/10]

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

Definition at line 280 of file RoutingModelParameters.java.

◆ parseFrom() [7/10]

com.google.ortools.constraintsolver.RoutingModelParameters com.google.ortools.constraintsolver.RoutingModelParameters.parseFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 248 of file RoutingModelParameters.java.

◆ parseFrom() [8/10]

com.google.ortools.constraintsolver.RoutingModelParameters com.google.ortools.constraintsolver.RoutingModelParameters.parseFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 253 of file RoutingModelParameters.java.

◆ parseFrom() [9/10]

com.google.ortools.constraintsolver.RoutingModelParameters com.google.ortools.constraintsolver.RoutingModelParameters.parseFrom ( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 216 of file RoutingModelParameters.java.

◆ parseFrom() [10/10]

com.google.ortools.constraintsolver.RoutingModelParameters com.google.ortools.constraintsolver.RoutingModelParameters.parseFrom ( java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 221 of file RoutingModelParameters.java.

◆ parser()

com.google.protobuf.Parser< RoutingModelParameters > com.google.ortools.constraintsolver.RoutingModelParameters.parser ( )
static

Definition at line 781 of file RoutingModelParameters.java.

◆ toBuilder()

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

Definition at line 297 of file RoutingModelParameters.java.

◆ writeTo()

void com.google.ortools.constraintsolver.RoutingModelParameters.writeTo ( com.google.protobuf.CodedOutputStream output) throws java.io.IOException

Definition at line 135 of file RoutingModelParameters.java.

Member Data Documentation

◆ MAX_CALLBACK_CACHE_SIZE_FIELD_NUMBER

final int com.google.ortools.constraintsolver.RoutingModelParameters.MAX_CALLBACK_CACHE_SIZE_FIELD_NUMBER = 3
static

Definition at line 107 of file RoutingModelParameters.java.

◆ REDUCE_VEHICLE_COST_MODEL_FIELD_NUMBER

final int com.google.ortools.constraintsolver.RoutingModelParameters.REDUCE_VEHICLE_COST_MODEL_FIELD_NUMBER = 2
static

Definition at line 89 of file RoutingModelParameters.java.

◆ SOLVER_PARAMETERS_FIELD_NUMBER

final int com.google.ortools.constraintsolver.RoutingModelParameters.SOLVER_PARAMETERS_FIELD_NUMBER = 1
static

Definition at line 51 of file RoutingModelParameters.java.


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