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

Classes

class  Builder
 

Public Member Functions

java.util.List< com.google.ortools.constraintsolver.RuinStrategygetRuinStrategiesList ()
 
java.util.List<? extends com.google.ortools.constraintsolver.RuinStrategyOrBuildergetRuinStrategiesOrBuilderList ()
 
int getRuinStrategiesCount ()
 
com.google.ortools.constraintsolver.RuinStrategy getRuinStrategies (int index)
 
com.google.ortools.constraintsolver.RuinStrategyOrBuilder getRuinStrategiesOrBuilder (int index)
 
int getRuinCompositionStrategyValue ()
 
com.google.ortools.constraintsolver.RuinCompositionStrategy.Value getRuinCompositionStrategy ()
 
int getRecreateStrategyValue ()
 
com.google.ortools.constraintsolver.FirstSolutionStrategy.Value getRecreateStrategy ()
 
boolean hasRouteSelectionNeighborsRatio ()
 
double getRouteSelectionNeighborsRatio ()
 
boolean hasRouteSelectionMinNeighbors ()
 
int getRouteSelectionMinNeighbors ()
 
boolean hasRouteSelectionMaxNeighbors ()
 
int getRouteSelectionMaxNeighbors ()
 
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< RuinRecreateParametersgetParserForType ()
 
com.google.ortools.constraintsolver.RuinRecreateParameters getDefaultInstanceForType ()
 

Static Public Member Functions

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

Static Public Attributes

static final int RUIN_STRATEGIES_FIELD_NUMBER = 1
 
static final int RUIN_COMPOSITION_STRATEGY_FIELD_NUMBER = 2
 
static final int RECREATE_STRATEGY_FIELD_NUMBER = 3
 
static final int ROUTE_SELECTION_NEIGHBORS_RATIO_FIELD_NUMBER = 4
 
static final int ROUTE_SELECTION_MIN_NEIGHBORS_FIELD_NUMBER = 5
 
static final int ROUTE_SELECTION_MAX_NEIGHBORS_FIELD_NUMBER = 6
 

Protected Member Functions

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

Detailed Description

Parameters to configure a perturbation based on a ruin and recreate approach.

Protobuf type operations_research.RuinRecreateParameters

Definition at line 15 of file RuinRecreateParameters.java.

Member Function Documentation

◆ equals()

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

Definition at line 334 of file RuinRecreateParameters.java.

◆ getDefaultInstance()

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

Definition at line 1412 of file RuinRecreateParameters.java.

◆ getDefaultInstanceForType()

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

Definition at line 1448 of file RuinRecreateParameters.java.

◆ getDescriptor()

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

Definition at line 40 of file RuinRecreateParameters.java.

◆ getParserForType()

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

Definition at line 1443 of file RuinRecreateParameters.java.

◆ getRecreateStrategy()

com.google.ortools.constraintsolver.FirstSolutionStrategy.Value com.google.ortools.constraintsolver.RuinRecreateParameters.getRecreateStrategy ( )
Strategy defining how a reference solution is recreated.

.operations_research.FirstSolutionStrategy.Value recreate_strategy = 3;

Returns
The recreateStrategy.

Implements com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder.

Definition at line 163 of file RuinRecreateParameters.java.

◆ getRecreateStrategyValue()

int com.google.ortools.constraintsolver.RuinRecreateParameters.getRecreateStrategyValue ( )
Strategy defining how a reference solution is recreated.

.operations_research.FirstSolutionStrategy.Value recreate_strategy = 3;

Returns
The enum numeric value on the wire for recreateStrategy.

Implements com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder.

Definition at line 152 of file RuinRecreateParameters.java.

◆ getRouteSelectionMaxNeighbors()

int com.google.ortools.constraintsolver.RuinRecreateParameters.getRouteSelectionMaxNeighbors ( )

optional uint32 route_selection_max_neighbors = 6;

Returns
The routeSelectionMaxNeighbors.

Implements com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder.

Definition at line 259 of file RuinRecreateParameters.java.

◆ getRouteSelectionMinNeighbors()

int com.google.ortools.constraintsolver.RuinRecreateParameters.getRouteSelectionMinNeighbors ( )

optional uint32 route_selection_min_neighbors = 5;

Returns
The routeSelectionMinNeighbors.

Implements com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder.

Definition at line 240 of file RuinRecreateParameters.java.

◆ getRouteSelectionNeighborsRatio()

double com.google.ortools.constraintsolver.RuinRecreateParameters.getRouteSelectionNeighborsRatio ( )
Ratio in [0, 1] of non start/end nodes to consider as neighbors for the
identification of routes spatially close to a non start/end seed node.

In particular, given a non start/end seed node s served by route r, we say
that a route r' is spatially close to the seed node s if there is at
least one non start/end node s' among the neighbors of s, such that s' is
served by r'.

The neighbors_ratio is coupled with the corresponding min_neighbors and
max_neighbors values, defining the minimum and maximum number of neighbor
nodes considered for a given seed node:
num_neighbors = min(max_neighbors,
max(min_neighbors, neighbors_ratio * NUM_NON_START_END_NODES))

Neighbors ratio, and minimum and maximum number of non start/end neighbor
nodes for the identification of spatially close routes.

optional double route_selection_neighbors_ratio = 4;

Returns
The routeSelectionNeighborsRatio.

Implements com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder.

Definition at line 221 of file RuinRecreateParameters.java.

◆ getRuinCompositionStrategy()

com.google.ortools.constraintsolver.RuinCompositionStrategy.Value com.google.ortools.constraintsolver.RuinRecreateParameters.getRuinCompositionStrategy ( )
The composition strategy to use when combining the given 'ruin_strategies'.
Has no effect when ruin_strategies is composed of a single strategy.

.operations_research.RuinCompositionStrategy.Value ruin_composition_strategy = 2;

Returns
The ruinCompositionStrategy.

Implements com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder.

Definition at line 137 of file RuinRecreateParameters.java.

◆ getRuinCompositionStrategyValue()

int com.google.ortools.constraintsolver.RuinRecreateParameters.getRuinCompositionStrategyValue ( )
The composition strategy to use when combining the given 'ruin_strategies'.
Has no effect when ruin_strategies is composed of a single strategy.

.operations_research.RuinCompositionStrategy.Value ruin_composition_strategy = 2;

Returns
The enum numeric value on the wire for ruinCompositionStrategy.

Implements com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder.

Definition at line 125 of file RuinRecreateParameters.java.

◆ getRuinStrategies()

com.google.ortools.constraintsolver.RuinStrategy com.google.ortools.constraintsolver.RuinRecreateParameters.getRuinStrategies ( int index)
List of ruin strategies determining how a reference solution is ruined.

repeated .operations_research.RuinStrategy ruin_strategies = 1;

Implements com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder.

Definition at line 98 of file RuinRecreateParameters.java.

◆ getRuinStrategiesCount()

int com.google.ortools.constraintsolver.RuinRecreateParameters.getRuinStrategiesCount ( )
List of ruin strategies determining how a reference solution is ruined.

repeated .operations_research.RuinStrategy ruin_strategies = 1;

Implements com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder.

Definition at line 87 of file RuinRecreateParameters.java.

◆ getRuinStrategiesList()

java.util.List< com.google.ortools.constraintsolver.RuinStrategy > com.google.ortools.constraintsolver.RuinRecreateParameters.getRuinStrategiesList ( )
List of ruin strategies determining how a reference solution is ruined.

repeated .operations_research.RuinStrategy ruin_strategies = 1;

Implements com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder.

Definition at line 64 of file RuinRecreateParameters.java.

◆ getRuinStrategiesOrBuilder()

com.google.ortools.constraintsolver.RuinStrategyOrBuilder com.google.ortools.constraintsolver.RuinRecreateParameters.getRuinStrategiesOrBuilder ( int index)
List of ruin strategies determining how a reference solution is ruined.

repeated .operations_research.RuinStrategy ruin_strategies = 1;

Implements com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder.

Definition at line 109 of file RuinRecreateParameters.java.

◆ getRuinStrategiesOrBuilderList()

java.util.List<? extends com.google.ortools.constraintsolver.RuinStrategyOrBuilder > com.google.ortools.constraintsolver.RuinRecreateParameters.getRuinStrategiesOrBuilderList ( )
List of ruin strategies determining how a reference solution is ruined.

repeated .operations_research.RuinStrategy ruin_strategies = 1;

Implements com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder.

Definition at line 76 of file RuinRecreateParameters.java.

◆ getSerializedSize()

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

Definition at line 299 of file RuinRecreateParameters.java.

◆ hashCode()

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

Definition at line 368 of file RuinRecreateParameters.java.

◆ hasRouteSelectionMaxNeighbors()

boolean com.google.ortools.constraintsolver.RuinRecreateParameters.hasRouteSelectionMaxNeighbors ( )

optional uint32 route_selection_max_neighbors = 6;

Returns
Whether the routeSelectionMaxNeighbors field is set.

Implements com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder.

Definition at line 251 of file RuinRecreateParameters.java.

◆ hasRouteSelectionMinNeighbors()

boolean com.google.ortools.constraintsolver.RuinRecreateParameters.hasRouteSelectionMinNeighbors ( )

optional uint32 route_selection_min_neighbors = 5;

Returns
Whether the routeSelectionMinNeighbors field is set.

Implements com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder.

Definition at line 232 of file RuinRecreateParameters.java.

◆ hasRouteSelectionNeighborsRatio()

boolean com.google.ortools.constraintsolver.RuinRecreateParameters.hasRouteSelectionNeighborsRatio ( )
Ratio in [0, 1] of non start/end nodes to consider as neighbors for the
identification of routes spatially close to a non start/end seed node.

In particular, given a non start/end seed node s served by route r, we say
that a route r' is spatially close to the seed node s if there is at
least one non start/end node s' among the neighbors of s, such that s' is
served by r'.

The neighbors_ratio is coupled with the corresponding min_neighbors and
max_neighbors values, defining the minimum and maximum number of neighbor
nodes considered for a given seed node:
num_neighbors = min(max_neighbors,
max(min_neighbors, neighbors_ratio * NUM_NON_START_END_NODES))

Neighbors ratio, and minimum and maximum number of non start/end neighbor
nodes for the identification of spatially close routes.

optional double route_selection_neighbors_ratio = 4;

Returns
Whether the routeSelectionNeighborsRatio field is set.

Implements com.google.ortools.constraintsolver.RuinRecreateParametersOrBuilder.

Definition at line 194 of file RuinRecreateParameters.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 46 of file RuinRecreateParameters.java.

◆ isInitialized()

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

Definition at line 265 of file RuinRecreateParameters.java.

◆ newBuilder() [1/2]

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

Definition at line 474 of file RuinRecreateParameters.java.

◆ newBuilder() [2/2]

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

Definition at line 477 of file RuinRecreateParameters.java.

◆ newBuilderForType() [1/2]

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

Definition at line 473 of file RuinRecreateParameters.java.

◆ newBuilderForType() [2/2]

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

Definition at line 487 of file RuinRecreateParameters.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 445 of file RuinRecreateParameters.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 451 of file RuinRecreateParameters.java.

◆ parseFrom() [1/10]

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

Definition at line 422 of file RuinRecreateParameters.java.

◆ parseFrom() [2/10]

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

Definition at line 426 of file RuinRecreateParameters.java.

◆ parseFrom() [3/10]

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

Definition at line 411 of file RuinRecreateParameters.java.

◆ parseFrom() [4/10]

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

Definition at line 416 of file RuinRecreateParameters.java.

◆ parseFrom() [5/10]

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

Definition at line 458 of file RuinRecreateParameters.java.

◆ parseFrom() [6/10]

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

Definition at line 464 of file RuinRecreateParameters.java.

◆ parseFrom() [7/10]

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

Definition at line 432 of file RuinRecreateParameters.java.

◆ parseFrom() [8/10]

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

Definition at line 437 of file RuinRecreateParameters.java.

◆ parseFrom() [9/10]

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

Definition at line 400 of file RuinRecreateParameters.java.

◆ parseFrom() [10/10]

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

Definition at line 405 of file RuinRecreateParameters.java.

◆ parser()

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

Definition at line 1438 of file RuinRecreateParameters.java.

◆ toBuilder()

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

Definition at line 481 of file RuinRecreateParameters.java.

◆ writeTo()

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

Definition at line 275 of file RuinRecreateParameters.java.

Member Data Documentation

◆ RECREATE_STRATEGY_FIELD_NUMBER

final int com.google.ortools.constraintsolver.RuinRecreateParameters.RECREATE_STRATEGY_FIELD_NUMBER = 3
static

Definition at line 142 of file RuinRecreateParameters.java.

◆ ROUTE_SELECTION_MAX_NEIGHBORS_FIELD_NUMBER

final int com.google.ortools.constraintsolver.RuinRecreateParameters.ROUTE_SELECTION_MAX_NEIGHBORS_FIELD_NUMBER = 6
static

Definition at line 244 of file RuinRecreateParameters.java.

◆ ROUTE_SELECTION_MIN_NEIGHBORS_FIELD_NUMBER

final int com.google.ortools.constraintsolver.RuinRecreateParameters.ROUTE_SELECTION_MIN_NEIGHBORS_FIELD_NUMBER = 5
static

Definition at line 225 of file RuinRecreateParameters.java.

◆ ROUTE_SELECTION_NEIGHBORS_RATIO_FIELD_NUMBER

final int com.google.ortools.constraintsolver.RuinRecreateParameters.ROUTE_SELECTION_NEIGHBORS_RATIO_FIELD_NUMBER = 4
static

Definition at line 168 of file RuinRecreateParameters.java.

◆ RUIN_COMPOSITION_STRATEGY_FIELD_NUMBER

final int com.google.ortools.constraintsolver.RuinRecreateParameters.RUIN_COMPOSITION_STRATEGY_FIELD_NUMBER = 2
static

Definition at line 114 of file RuinRecreateParameters.java.

◆ RUIN_STRATEGIES_FIELD_NUMBER

final int com.google.ortools.constraintsolver.RuinRecreateParameters.RUIN_STRATEGIES_FIELD_NUMBER = 1
static

Definition at line 53 of file RuinRecreateParameters.java.


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