![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
Parameters used to configure savings heuristics.
Protobuf type operations_research.SavingsParameters
Definition at line 16 of file SavingsParameters.java.
Classes | |
| class | Builder |
Public Member Functions | |
| double | getNeighborsRatio () |
| double | getMaxMemoryUsageBytes () |
| boolean | getAddReverseArcs () |
| double | getArcCoefficient () |
| 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< SavingsParameters > | getParserForType () |
| com.google.ortools.constraintsolver.SavingsParameters | getDefaultInstanceForType () |
Static Public Member Functions | |
| static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
| static com.google.ortools.constraintsolver.SavingsParameters | parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.constraintsolver.SavingsParameters | parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.constraintsolver.SavingsParameters | parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.constraintsolver.SavingsParameters | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.constraintsolver.SavingsParameters | parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.constraintsolver.SavingsParameters | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException |
| static com.google.ortools.constraintsolver.SavingsParameters | parseFrom (java.io.InputStream input) throws java.io.IOException |
| static com.google.ortools.constraintsolver.SavingsParameters | parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
| static com.google.ortools.constraintsolver.SavingsParameters | parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException |
| static com.google.ortools.constraintsolver.SavingsParameters | parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException |
| static com.google.ortools.constraintsolver.SavingsParameters | parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException |
| static com.google.ortools.constraintsolver.SavingsParameters | 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.SavingsParameters prototype) |
| static com.google.ortools.constraintsolver.SavingsParameters | getDefaultInstance () |
| static com.google.protobuf.Parser< SavingsParameters > | parser () |
Static Public Attributes | |
| static final int | NEIGHBORS_RATIO_FIELD_NUMBER = 1 |
| static final int | MAX_MEMORY_USAGE_BYTES_FIELD_NUMBER = 2 |
| static final int | ADD_REVERSE_ARCS_FIELD_NUMBER = 3 |
| static final int | ARC_COEFFICIENT_FIELD_NUMBER = 4 |
Protected Member Functions | |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
| Builder | newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent) |
| boolean com.google.ortools.constraintsolver.SavingsParameters.equals | ( | final java.lang.Object | obj | ) |
Definition at line 178 of file SavingsParameters.java.
| boolean com.google.ortools.constraintsolver.SavingsParameters.getAddReverseArcs | ( | ) |
Add savings related to reverse arcs when finding the nearest neighbors of the nodes.
bool add_reverse_arcs = 3;
Implements com.google.ortools.constraintsolver.SavingsParametersOrBuilder.
Definition at line 98 of file SavingsParameters.java.
| double com.google.ortools.constraintsolver.SavingsParameters.getArcCoefficient | ( | ) |
Coefficient of the cost of the arc for which the saving value is being computed: Saving(a-->b) = Cost(a-->end) + Cost(start-->b) - arc_coefficient * Cost(a-->b) This parameter must be greater than 0, and its default value is 1.
double arc_coefficient = 4;
Implements com.google.ortools.constraintsolver.SavingsParametersOrBuilder.
Definition at line 117 of file SavingsParameters.java.
|
static |
Definition at line 712 of file SavingsParameters.java.
| com.google.ortools.constraintsolver.SavingsParameters com.google.ortools.constraintsolver.SavingsParameters.getDefaultInstanceForType | ( | ) |
Definition at line 748 of file SavingsParameters.java.
|
static |
Definition at line 38 of file SavingsParameters.java.
| double com.google.ortools.constraintsolver.SavingsParameters.getMaxMemoryUsageBytes | ( | ) |
The number of neighbors considered for each node in the Savings heuristic is chosen so that the space used to store the savings doesn't exceed max_memory_usage_bytes, which must be in ]0, 1e10]. NOTE: If both neighbors_ratio and max_memory_usage_bytes are specified, the number of neighbors considered for each node will be the minimum of the two numbers determined by these parameters.
double max_memory_usage_bytes = 2;
Implements com.google.ortools.constraintsolver.SavingsParametersOrBuilder.
Definition at line 82 of file SavingsParameters.java.
| double com.google.ortools.constraintsolver.SavingsParameters.getNeighborsRatio | ( | ) |
Ratio (in ]0, 1]) of neighbors to consider for each node when constructing the savings. If unspecified, its value is considered to be 1.0.
double neighbors_ratio = 1;
Implements com.google.ortools.constraintsolver.SavingsParametersOrBuilder.
Definition at line 62 of file SavingsParameters.java.
| com.google.protobuf.Parser< SavingsParameters > com.google.ortools.constraintsolver.SavingsParameters.getParserForType | ( | ) |
Definition at line 743 of file SavingsParameters.java.
| int com.google.ortools.constraintsolver.SavingsParameters.getSerializedSize | ( | ) |
Definition at line 151 of file SavingsParameters.java.
| int com.google.ortools.constraintsolver.SavingsParameters.hashCode | ( | ) |
Definition at line 203 of file SavingsParameters.java.
|
protected |
Definition at line 44 of file SavingsParameters.java.
| final boolean com.google.ortools.constraintsolver.SavingsParameters.isInitialized | ( | ) |
Definition at line 123 of file SavingsParameters.java.
|
static |
Definition at line 300 of file SavingsParameters.java.
|
static |
Definition at line 303 of file SavingsParameters.java.
| Builder com.google.ortools.constraintsolver.SavingsParameters.newBuilderForType | ( | ) |
Definition at line 299 of file SavingsParameters.java.
|
protected |
Definition at line 313 of file SavingsParameters.java.
|
static |
Definition at line 271 of file SavingsParameters.java.
|
static |
Definition at line 277 of file SavingsParameters.java.
|
static |
Definition at line 248 of file SavingsParameters.java.
|
static |
Definition at line 252 of file SavingsParameters.java.
|
static |
Definition at line 237 of file SavingsParameters.java.
|
static |
Definition at line 242 of file SavingsParameters.java.
|
static |
Definition at line 284 of file SavingsParameters.java.
|
static |
Definition at line 290 of file SavingsParameters.java.
|
static |
Definition at line 258 of file SavingsParameters.java.
|
static |
Definition at line 263 of file SavingsParameters.java.
|
static |
Definition at line 226 of file SavingsParameters.java.
|
static |
Definition at line 231 of file SavingsParameters.java.
|
static |
Definition at line 738 of file SavingsParameters.java.
| Builder com.google.ortools.constraintsolver.SavingsParameters.toBuilder | ( | ) |
Definition at line 307 of file SavingsParameters.java.
| void com.google.ortools.constraintsolver.SavingsParameters.writeTo | ( | com.google.protobuf.CodedOutputStream | output | ) | throws java.io.IOException |
Definition at line 133 of file SavingsParameters.java.
|
static |
Definition at line 86 of file SavingsParameters.java.
|
static |
Definition at line 102 of file SavingsParameters.java.
|
static |
Definition at line 66 of file SavingsParameters.java.
|
static |
Definition at line 50 of file SavingsParameters.java.