Class MalitskyPockParams.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<MalitskyPockParams.Builder>
com.google.protobuf.GeneratedMessage.Builder<MalitskyPockParams.Builder>
com.google.ortools.pdlp.MalitskyPockParams.Builder
- All Implemented Interfaces:
MalitskyPockParamsOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
MalitskyPockParams
public static final class MalitskyPockParams.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MalitskyPockParams.Builder>
implements MalitskyPockParamsOrBuilder
Protobuf type
operations_research.pdlp.MalitskyPockParams
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
Contraction factor used in the linesearch condition of Malitsky and Pock.At every inner iteration the algorithm can decide to accept the step size or to update it to step_size = step_size_downscaling_factor * step_size.Malitsky and Pock linesearch rule permits an arbitrary choice of the first step size guess within an interval [m, M].static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
double
Contraction factor used in the linesearch condition of Malitsky and Pock.double
At every inner iteration the algorithm can decide to accept the step size or to update it to step_size = step_size_downscaling_factor * step_size.double
Malitsky and Pock linesearch rule permits an arbitrary choice of the first step size guess within an interval [m, M].boolean
Contraction factor used in the linesearch condition of Malitsky and Pock.boolean
At every inner iteration the algorithm can decide to accept the step size or to update it to step_size = step_size_downscaling_factor * step_size.boolean
Malitsky and Pock linesearch rule permits an arbitrary choice of the first step size guess within an interval [m, M].protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(MalitskyPockParams other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) setLinesearchContractionFactor
(double value) Contraction factor used in the linesearch condition of Malitsky and Pock.setStepSizeDownscalingFactor
(double value) At every inner iteration the algorithm can decide to accept the step size or to update it to step_size = step_size_downscaling_factor * step_size.setStepSizeInterpolation
(double value) Malitsky and Pock linesearch rule permits an arbitrary choice of the first step size guess within an interval [m, M].Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<MalitskyPockParams.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<MalitskyPockParams.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<MalitskyPockParams.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MalitskyPockParams.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<MalitskyPockParams.Builder>
-
mergeFrom
public MalitskyPockParams.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MalitskyPockParams.Builder>
- Throws:
IOException
-
hasStepSizeDownscalingFactor
public boolean hasStepSizeDownscalingFactor()At every inner iteration the algorithm can decide to accept the step size or to update it to step_size = step_size_downscaling_factor * step_size. This parameter should lie between 0 and 1. The default is the value used in Malitsky and Pock (2016).
optional double step_size_downscaling_factor = 1 [default = 0.7];
- Specified by:
hasStepSizeDownscalingFactor
in interfaceMalitskyPockParamsOrBuilder
- Returns:
- Whether the stepSizeDownscalingFactor field is set.
-
getStepSizeDownscalingFactor
public double getStepSizeDownscalingFactor()At every inner iteration the algorithm can decide to accept the step size or to update it to step_size = step_size_downscaling_factor * step_size. This parameter should lie between 0 and 1. The default is the value used in Malitsky and Pock (2016).
optional double step_size_downscaling_factor = 1 [default = 0.7];
- Specified by:
getStepSizeDownscalingFactor
in interfaceMalitskyPockParamsOrBuilder
- Returns:
- The stepSizeDownscalingFactor.
-
setStepSizeDownscalingFactor
At every inner iteration the algorithm can decide to accept the step size or to update it to step_size = step_size_downscaling_factor * step_size. This parameter should lie between 0 and 1. The default is the value used in Malitsky and Pock (2016).
optional double step_size_downscaling_factor = 1 [default = 0.7];
- Parameters:
value
- The stepSizeDownscalingFactor to set.- Returns:
- This builder for chaining.
-
clearStepSizeDownscalingFactor
At every inner iteration the algorithm can decide to accept the step size or to update it to step_size = step_size_downscaling_factor * step_size. This parameter should lie between 0 and 1. The default is the value used in Malitsky and Pock (2016).
optional double step_size_downscaling_factor = 1 [default = 0.7];
- Returns:
- This builder for chaining.
-
hasLinesearchContractionFactor
public boolean hasLinesearchContractionFactor()Contraction factor used in the linesearch condition of Malitsky and Pock. A step size is accepted if primal_weight * primal_stepsize * norm(constraint_matrix' * (next_dual - current_dual)) is less than linesearch_contraction_factor * norm(next_dual - current_dual). The default is the value used in Malitsky and Pock (2016).
optional double linesearch_contraction_factor = 2 [default = 0.99];
- Specified by:
hasLinesearchContractionFactor
in interfaceMalitskyPockParamsOrBuilder
- Returns:
- Whether the linesearchContractionFactor field is set.
-
getLinesearchContractionFactor
public double getLinesearchContractionFactor()Contraction factor used in the linesearch condition of Malitsky and Pock. A step size is accepted if primal_weight * primal_stepsize * norm(constraint_matrix' * (next_dual - current_dual)) is less than linesearch_contraction_factor * norm(next_dual - current_dual). The default is the value used in Malitsky and Pock (2016).
optional double linesearch_contraction_factor = 2 [default = 0.99];
- Specified by:
getLinesearchContractionFactor
in interfaceMalitskyPockParamsOrBuilder
- Returns:
- The linesearchContractionFactor.
-
setLinesearchContractionFactor
Contraction factor used in the linesearch condition of Malitsky and Pock. A step size is accepted if primal_weight * primal_stepsize * norm(constraint_matrix' * (next_dual - current_dual)) is less than linesearch_contraction_factor * norm(next_dual - current_dual). The default is the value used in Malitsky and Pock (2016).
optional double linesearch_contraction_factor = 2 [default = 0.99];
- Parameters:
value
- The linesearchContractionFactor to set.- Returns:
- This builder for chaining.
-
clearLinesearchContractionFactor
Contraction factor used in the linesearch condition of Malitsky and Pock. A step size is accepted if primal_weight * primal_stepsize * norm(constraint_matrix' * (next_dual - current_dual)) is less than linesearch_contraction_factor * norm(next_dual - current_dual). The default is the value used in Malitsky and Pock (2016).
optional double linesearch_contraction_factor = 2 [default = 0.99];
- Returns:
- This builder for chaining.
-
hasStepSizeInterpolation
public boolean hasStepSizeInterpolation()Malitsky and Pock linesearch rule permits an arbitrary choice of the first step size guess within an interval [m, M]. This parameter determines where in that interval to pick the step size. In particular, the next stepsize is given by m + step_size_interpolation*(M - m). The default is the value used in Malitsky and Pock (2016).
optional double step_size_interpolation = 3 [default = 1];
- Specified by:
hasStepSizeInterpolation
in interfaceMalitskyPockParamsOrBuilder
- Returns:
- Whether the stepSizeInterpolation field is set.
-
getStepSizeInterpolation
public double getStepSizeInterpolation()Malitsky and Pock linesearch rule permits an arbitrary choice of the first step size guess within an interval [m, M]. This parameter determines where in that interval to pick the step size. In particular, the next stepsize is given by m + step_size_interpolation*(M - m). The default is the value used in Malitsky and Pock (2016).
optional double step_size_interpolation = 3 [default = 1];
- Specified by:
getStepSizeInterpolation
in interfaceMalitskyPockParamsOrBuilder
- Returns:
- The stepSizeInterpolation.
-
setStepSizeInterpolation
Malitsky and Pock linesearch rule permits an arbitrary choice of the first step size guess within an interval [m, M]. This parameter determines where in that interval to pick the step size. In particular, the next stepsize is given by m + step_size_interpolation*(M - m). The default is the value used in Malitsky and Pock (2016).
optional double step_size_interpolation = 3 [default = 1];
- Parameters:
value
- The stepSizeInterpolation to set.- Returns:
- This builder for chaining.
-
clearStepSizeInterpolation
Malitsky and Pock linesearch rule permits an arbitrary choice of the first step size guess within an interval [m, M]. This parameter determines where in that interval to pick the step size. In particular, the next stepsize is given by m + step_size_interpolation*(M - m). The default is the value used in Malitsky and Pock (2016).
optional double step_size_interpolation = 3 [default = 1];
- Returns:
- This builder for chaining.
-