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

Detailed Description

Ruin strategy that removes a number of customers by performing a random walk
on the underlying routing solution. More precisely, starting from a randomly
selected seed visit, the walk is extended by either moving within the
same route or by jumping to a visit served by a different neighboring
route. Every active visit encountered along this random walk is made
unperformed.

Protobuf type operations_research.RandomWalkRuinStrategy

Definition at line 265 of file RandomWalkRuinStrategy.java.

Inheritance diagram for com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder:
com.google.ortools.constraintsolver.RandomWalkRuinStrategyOrBuilder

Public Member Functions

Builder clear ()
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
com.google.ortools.constraintsolver.RandomWalkRuinStrategy getDefaultInstanceForType ()
com.google.ortools.constraintsolver.RandomWalkRuinStrategy build ()
com.google.ortools.constraintsolver.RandomWalkRuinStrategy buildPartial ()
Builder mergeFrom (com.google.protobuf.Message other)
Builder mergeFrom (com.google.ortools.constraintsolver.RandomWalkRuinStrategy other)
final boolean isInitialized ()
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
boolean hasNumRemovedVisits ()
int getNumRemovedVisits ()
Builder setNumRemovedVisits (int value)
Builder clearNumRemovedVisits ()

Static Public Member Functions

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

Protected Member Functions

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

Member Function Documentation

◆ build()

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

Definition at line 312 of file RandomWalkRuinStrategy.java.

◆ buildPartial()

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

Definition at line 321 of file RandomWalkRuinStrategy.java.

◆ clear()

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

Definition at line 293 of file RandomWalkRuinStrategy.java.

◆ clearNumRemovedVisits()

Builder com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.clearNumRemovedVisits ( )
Number of visits removed during a ruin application defined on visits.
Note that pickup and delivery pairs are considered as a single entity,
i.e., the removal of a pickup (respectively delivery) causes the removal of
the associated delivery (respectively pickup) and it counts as a single
removal.

optional uint32 num_removed_visits = 7;

Returns
This builder for chaining.

Definition at line 466 of file RandomWalkRuinStrategy.java.

◆ getDefaultInstanceForType()

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

Definition at line 307 of file RandomWalkRuinStrategy.java.

◆ getDescriptor()

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

Definition at line 270 of file RandomWalkRuinStrategy.java.

◆ getDescriptorForType()

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

Definition at line 302 of file RandomWalkRuinStrategy.java.

◆ getNumRemovedVisits()

int com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.getNumRemovedVisits ( )
Number of visits removed during a ruin application defined on visits.
Note that pickup and delivery pairs are considered as a single entity,
i.e., the removal of a pickup (respectively delivery) causes the removal of
the associated delivery (respectively pickup) and it counts as a single
removal.

optional uint32 num_removed_visits = 7;

Returns
The numRemovedVisits.

Implements com.google.ortools.constraintsolver.RandomWalkRuinStrategyOrBuilder.

Definition at line 431 of file RandomWalkRuinStrategy.java.

◆ hasNumRemovedVisits()

boolean com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.hasNumRemovedVisits ( )
Number of visits removed during a ruin application defined on visits.
Note that pickup and delivery pairs are considered as a single entity,
i.e., the removal of a pickup (respectively delivery) causes the removal of
the associated delivery (respectively pickup) and it counts as a single
removal.

optional uint32 num_removed_visits = 7;

Returns
Whether the numRemovedVisits field is set.

Implements com.google.ortools.constraintsolver.RandomWalkRuinStrategyOrBuilder.

Definition at line 415 of file RandomWalkRuinStrategy.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 276 of file RandomWalkRuinStrategy.java.

◆ isInitialized()

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

Definition at line 359 of file RandomWalkRuinStrategy.java.

◆ mergeFrom() [1/3]

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

Definition at line 348 of file RandomWalkRuinStrategy.java.

◆ mergeFrom() [2/3]

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

Definition at line 364 of file RandomWalkRuinStrategy.java.

◆ mergeFrom() [3/3]

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

Definition at line 339 of file RandomWalkRuinStrategy.java.

◆ setNumRemovedVisits()

Builder com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.setNumRemovedVisits ( int value)
Number of visits removed during a ruin application defined on visits.
Note that pickup and delivery pairs are considered as a single entity,
i.e., the removal of a pickup (respectively delivery) causes the removal of
the associated delivery (respectively pickup) and it counts as a single
removal.

optional uint32 num_removed_visits = 7;

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

Definition at line 447 of file RandomWalkRuinStrategy.java.


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