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

Detailed Description

Strategy defining how a solution is recreated.

Protobuf type operations_research.RecreateStrategy

Definition at line 16 of file RecreateStrategy.java.

Inheritance diagram for com.google.ortools.constraintsolver.RecreateStrategy:
com.google.ortools.constraintsolver.RecreateStrategyOrBuilder

Classes

class  Builder

Public Member Functions

boolean hasHeuristic ()
int getHeuristicValue ()
com.google.ortools.constraintsolver.FirstSolutionStrategy.Value getHeuristic ()
boolean hasParameters ()
com.google.ortools.constraintsolver.RecreateParameters getParameters ()
com.google.ortools.constraintsolver.RecreateParametersOrBuilder getParametersOrBuilder ()
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< RecreateStrategy > getParserForType ()
com.google.ortools.constraintsolver.RecreateStrategy getDefaultInstanceForType ()

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
static com.google.ortools.constraintsolver.RecreateStrategy parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.constraintsolver.RecreateStrategy parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.constraintsolver.RecreateStrategy parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.constraintsolver.RecreateStrategy parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.constraintsolver.RecreateStrategy parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.constraintsolver.RecreateStrategy parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
static com.google.ortools.constraintsolver.RecreateStrategy parseFrom (java.io.InputStream input) throws java.io.IOException
static com.google.ortools.constraintsolver.RecreateStrategy parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static com.google.ortools.constraintsolver.RecreateStrategy parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
static com.google.ortools.constraintsolver.RecreateStrategy parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
static com.google.ortools.constraintsolver.RecreateStrategy parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
static com.google.ortools.constraintsolver.RecreateStrategy 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.RecreateStrategy prototype)
static com.google.ortools.constraintsolver.RecreateStrategy getDefaultInstance ()
static com.google.protobuf.Parser< RecreateStrategy > parser ()

Static Public Attributes

static final int HEURISTIC_FIELD_NUMBER = 1
static final int PARAMETERS_FIELD_NUMBER = 2

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.RecreateStrategy.equals ( final java.lang.Object obj)

Definition at line 161 of file RecreateStrategy.java.

◆ getDefaultInstance()

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

Definition at line 698 of file RecreateStrategy.java.

◆ getDefaultInstanceForType()

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

Definition at line 734 of file RecreateStrategy.java.

◆ getDescriptor()

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

Definition at line 39 of file RecreateStrategy.java.

◆ getHeuristic()

com.google.ortools.constraintsolver.FirstSolutionStrategy.Value com.google.ortools.constraintsolver.RecreateStrategy.getHeuristic ( )

optional .operations_research.FirstSolutionStrategy.Value heuristic = 1;

Returns
The heuristic.

Implements com.google.ortools.constraintsolver.RecreateStrategyOrBuilder.

Definition at line 72 of file RecreateStrategy.java.

◆ getHeuristicValue()

int com.google.ortools.constraintsolver.RecreateStrategy.getHeuristicValue ( )

optional .operations_research.FirstSolutionStrategy.Value heuristic = 1;

Returns
The enum numeric value on the wire for heuristic.

Implements com.google.ortools.constraintsolver.RecreateStrategyOrBuilder.

Definition at line 65 of file RecreateStrategy.java.

◆ getParameters()

com.google.ortools.constraintsolver.RecreateParameters com.google.ortools.constraintsolver.RecreateStrategy.getParameters ( )
The selected parameters should match the chosen recreate heuristic.
If not set, the default parameters from the RoutingModel are used.

optional .operations_research.RecreateParameters parameters = 2;

Returns
The parameters.

Implements com.google.ortools.constraintsolver.RecreateStrategyOrBuilder.

Definition at line 102 of file RecreateStrategy.java.

◆ getParametersOrBuilder()

com.google.ortools.constraintsolver.RecreateParametersOrBuilder com.google.ortools.constraintsolver.RecreateStrategy.getParametersOrBuilder ( )
The selected parameters should match the chosen recreate heuristic.
If not set, the default parameters from the RoutingModel are used.

optional .operations_research.RecreateParameters parameters = 2;

Implements com.google.ortools.constraintsolver.RecreateStrategyOrBuilder.

Definition at line 114 of file RecreateStrategy.java.

◆ getParserForType()

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

Definition at line 729 of file RecreateStrategy.java.

◆ getSerializedSize()

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

Definition at line 142 of file RecreateStrategy.java.

◆ hashCode()

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

Definition at line 184 of file RecreateStrategy.java.

◆ hasHeuristic()

boolean com.google.ortools.constraintsolver.RecreateStrategy.hasHeuristic ( )

optional .operations_research.FirstSolutionStrategy.Value heuristic = 1;

Returns
Whether the heuristic field is set.

Implements com.google.ortools.constraintsolver.RecreateStrategyOrBuilder.

Definition at line 58 of file RecreateStrategy.java.

◆ hasParameters()

boolean com.google.ortools.constraintsolver.RecreateStrategy.hasParameters ( )
The selected parameters should match the chosen recreate heuristic.
If not set, the default parameters from the RoutingModel are used.

optional .operations_research.RecreateParameters parameters = 2;

Returns
Whether the parameters field is set.

Implements com.google.ortools.constraintsolver.RecreateStrategyOrBuilder.

Definition at line 89 of file RecreateStrategy.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 45 of file RecreateStrategy.java.

◆ isInitialized()

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

Definition at line 120 of file RecreateStrategy.java.

◆ newBuilder() [1/2]

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

Definition at line 277 of file RecreateStrategy.java.

◆ newBuilder() [2/2]

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

Definition at line 280 of file RecreateStrategy.java.

◆ newBuilderForType() [1/2]

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

Definition at line 276 of file RecreateStrategy.java.

◆ newBuilderForType() [2/2]

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

Definition at line 290 of file RecreateStrategy.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 248 of file RecreateStrategy.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 254 of file RecreateStrategy.java.

◆ parseFrom() [1/10]

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

Definition at line 225 of file RecreateStrategy.java.

◆ parseFrom() [2/10]

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

Definition at line 229 of file RecreateStrategy.java.

◆ parseFrom() [3/10]

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

Definition at line 214 of file RecreateStrategy.java.

◆ parseFrom() [4/10]

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

Definition at line 219 of file RecreateStrategy.java.

◆ parseFrom() [5/10]

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

Definition at line 261 of file RecreateStrategy.java.

◆ parseFrom() [6/10]

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

Definition at line 267 of file RecreateStrategy.java.

◆ parseFrom() [7/10]

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

Definition at line 235 of file RecreateStrategy.java.

◆ parseFrom() [8/10]

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

Definition at line 240 of file RecreateStrategy.java.

◆ parseFrom() [9/10]

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

Definition at line 203 of file RecreateStrategy.java.

◆ parseFrom() [10/10]

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

Definition at line 208 of file RecreateStrategy.java.

◆ parser()

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

Definition at line 724 of file RecreateStrategy.java.

◆ toBuilder()

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

Definition at line 284 of file RecreateStrategy.java.

◆ writeTo()

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

Definition at line 130 of file RecreateStrategy.java.

Member Data Documentation

◆ HEURISTIC_FIELD_NUMBER

final int com.google.ortools.constraintsolver.RecreateStrategy.HEURISTIC_FIELD_NUMBER = 1
static

Definition at line 52 of file RecreateStrategy.java.

◆ PARAMETERS_FIELD_NUMBER

final int com.google.ortools.constraintsolver.RecreateStrategy.PARAMETERS_FIELD_NUMBER = 2
static

Definition at line 77 of file RecreateStrategy.java.


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