![]() |
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 325 of file SavingsParameters.java.
Static Public Member Functions | |
| static final com.google.protobuf.Descriptors.Descriptor | getDescriptor () |
Protected Member Functions | |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable | internalGetFieldAccessorTable () |
| com.google.ortools.constraintsolver.SavingsParameters com.google.ortools.constraintsolver.SavingsParameters.Builder.build | ( | ) |
Definition at line 375 of file SavingsParameters.java.
| com.google.ortools.constraintsolver.SavingsParameters com.google.ortools.constraintsolver.SavingsParameters.Builder.buildPartial | ( | ) |
Definition at line 384 of file SavingsParameters.java.
| Builder com.google.ortools.constraintsolver.SavingsParameters.Builder.clear | ( | ) |
Definition at line 353 of file SavingsParameters.java.
| Builder com.google.ortools.constraintsolver.SavingsParameters.Builder.clearAddReverseArcs | ( | ) |
Add savings related to reverse arcs when finding the nearest neighbors of the nodes.
bool add_reverse_arcs = 3;
Definition at line 640 of file SavingsParameters.java.
| Builder com.google.ortools.constraintsolver.SavingsParameters.Builder.clearArcCoefficient | ( | ) |
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;
Definition at line 696 of file SavingsParameters.java.
| Builder com.google.ortools.constraintsolver.SavingsParameters.Builder.clearMaxMemoryUsageBytes | ( | ) |
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;
Definition at line 593 of file SavingsParameters.java.
| Builder com.google.ortools.constraintsolver.SavingsParameters.Builder.clearNeighborsRatio | ( | ) |
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;
Definition at line 534 of file SavingsParameters.java.
| boolean com.google.ortools.constraintsolver.SavingsParameters.Builder.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 611 of file SavingsParameters.java.
| double com.google.ortools.constraintsolver.SavingsParameters.Builder.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 661 of file SavingsParameters.java.
| com.google.ortools.constraintsolver.SavingsParameters com.google.ortools.constraintsolver.SavingsParameters.Builder.getDefaultInstanceForType | ( | ) |
Definition at line 370 of file SavingsParameters.java.
|
static |
Definition at line 330 of file SavingsParameters.java.
| com.google.protobuf.Descriptors.Descriptor com.google.ortools.constraintsolver.SavingsParameters.Builder.getDescriptorForType | ( | ) |
Definition at line 365 of file SavingsParameters.java.
| double com.google.ortools.constraintsolver.SavingsParameters.Builder.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 556 of file SavingsParameters.java.
| double com.google.ortools.constraintsolver.SavingsParameters.Builder.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 505 of file SavingsParameters.java.
|
protected |
Definition at line 336 of file SavingsParameters.java.
| final boolean com.google.ortools.constraintsolver.SavingsParameters.Builder.isInitialized | ( | ) |
Definition at line 437 of file SavingsParameters.java.
| Builder com.google.ortools.constraintsolver.SavingsParameters.Builder.mergeFrom | ( | com.google.ortools.constraintsolver.SavingsParameters | other | ) |
Definition at line 417 of file SavingsParameters.java.
| Builder com.google.ortools.constraintsolver.SavingsParameters.Builder.mergeFrom | ( | com.google.protobuf.CodedInputStream | input, |
| com.google.protobuf.ExtensionRegistryLite | extensionRegistry ) throws java.io.IOException |
Definition at line 442 of file SavingsParameters.java.
| Builder com.google.ortools.constraintsolver.SavingsParameters.Builder.mergeFrom | ( | com.google.protobuf.Message | other | ) |
Definition at line 408 of file SavingsParameters.java.
| Builder com.google.ortools.constraintsolver.SavingsParameters.Builder.setAddReverseArcs | ( | boolean | value | ) |
Add savings related to reverse arcs when finding the nearest neighbors of the nodes.
bool add_reverse_arcs = 3;
| value | The addReverseArcs to set. |
Definition at line 624 of file SavingsParameters.java.
| Builder com.google.ortools.constraintsolver.SavingsParameters.Builder.setArcCoefficient | ( | double | value | ) |
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;
| value | The arcCoefficient to set. |
Definition at line 677 of file SavingsParameters.java.
| Builder com.google.ortools.constraintsolver.SavingsParameters.Builder.setMaxMemoryUsageBytes | ( | double | value | ) |
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;
| value | The maxMemoryUsageBytes to set. |
Definition at line 573 of file SavingsParameters.java.
| Builder com.google.ortools.constraintsolver.SavingsParameters.Builder.setNeighborsRatio | ( | double | value | ) |
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;
| value | The neighborsRatio to set. |
Definition at line 518 of file SavingsParameters.java.