Uses of Class
com.google.ortools.constraintsolver.SavingsParameters.Builder
Packages that use SavingsParameters.Builder
-
Uses of SavingsParameters.Builder in com.google.ortools.constraintsolver
Subclasses with type arguments of type SavingsParameters.Builder in com.google.ortools.constraintsolverModifier and TypeClassDescriptionstatic final classParameters used to configure savings heuristics.Methods in com.google.ortools.constraintsolver that return SavingsParameters.BuilderModifier and TypeMethodDescriptionSavingsParameters.Builder.clear()SavingsParameters.Builder.clearAddReverseArcs()Add savings related to reverse arcs when finding the nearest neighbors of the nodes.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.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].SavingsParameters.Builder.clearNeighborsRatio()Ratio (in ]0, 1]) of neighbors to consider for each node when constructing the savings.RecreateParameters.Builder.getSavingsBuilder().operations_research.SavingsParameters savings = 2;RoutingSearchParameters.Builder.getSavingsParametersBuilder()Parameters for the Savings heuristic.SavingsParameters.Builder.mergeFrom(SavingsParameters other) SavingsParameters.Builder.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) SavingsParameters.Builder.mergeFrom(com.google.protobuf.Message other) static SavingsParameters.BuilderSavingsParameters.newBuilder()static SavingsParameters.BuilderSavingsParameters.newBuilder(SavingsParameters prototype) SavingsParameters.newBuilderForType()protected SavingsParameters.BuilderSavingsParameters.newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) SavingsParameters.Builder.setAddReverseArcs(boolean value) Add savings related to reverse arcs when finding the nearest neighbors of the nodes.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.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].SavingsParameters.Builder.setNeighborsRatio(double value) Ratio (in ]0, 1]) of neighbors to consider for each node when constructing the savings.SavingsParameters.toBuilder()Methods in com.google.ortools.constraintsolver with parameters of type SavingsParameters.BuilderModifier and TypeMethodDescriptionRecreateParameters.Builder.setSavings(SavingsParameters.Builder builderForValue) .operations_research.SavingsParameters savings = 2;RoutingSearchParameters.Builder.setSavingsParameters(SavingsParameters.Builder builderForValue) Parameters for the Savings heuristic.