Class Solvers.AdaptiveLinesearchParams.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable, Solvers.AdaptiveLinesearchParamsOrBuilder
    Enclosing class:
    Solvers.AdaptiveLinesearchParams

    public static final class Solvers.AdaptiveLinesearchParams.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Solvers.AdaptiveLinesearchParams.Builder>
    implements Solvers.AdaptiveLinesearchParamsOrBuilder
     At the end of each iteration, regardless of whether the step was accepted
     or not, the adaptive rule updates the step_size as the minimum of two
     potential step sizes defined by the following two exponents.
     
    Protobuf type operations_research.pdlp.AdaptiveLinesearchParams
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Solvers.AdaptiveLinesearchParams.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Solvers.AdaptiveLinesearchParams.Builder>
      • getDefaultInstanceForType

        public Solvers.AdaptiveLinesearchParams getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Solvers.AdaptiveLinesearchParams build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Solvers.AdaptiveLinesearchParams buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Solvers.AdaptiveLinesearchParams.Builder>
      • mergeFrom

        public Solvers.AdaptiveLinesearchParams.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                           throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Solvers.AdaptiveLinesearchParams.Builder>
        Throws:
        java.io.IOException
      • hasStepSizeReductionExponent

        public boolean hasStepSizeReductionExponent()
         The step size reduction exponent defines a step size given by
         (1 - (total_steps_attempted + 1)^(-step_size_reduction_exponent)) *
         step_size_limit where step_size_limit is the maximum allowed step size at
         the current iteration. This should be between 0.1 and 1.
         
        optional double step_size_reduction_exponent = 1 [default = 0.3];
        Specified by:
        hasStepSizeReductionExponent in interface Solvers.AdaptiveLinesearchParamsOrBuilder
        Returns:
        Whether the stepSizeReductionExponent field is set.
      • getStepSizeReductionExponent

        public double getStepSizeReductionExponent()
         The step size reduction exponent defines a step size given by
         (1 - (total_steps_attempted + 1)^(-step_size_reduction_exponent)) *
         step_size_limit where step_size_limit is the maximum allowed step size at
         the current iteration. This should be between 0.1 and 1.
         
        optional double step_size_reduction_exponent = 1 [default = 0.3];
        Specified by:
        getStepSizeReductionExponent in interface Solvers.AdaptiveLinesearchParamsOrBuilder
        Returns:
        The stepSizeReductionExponent.
      • setStepSizeReductionExponent

        public Solvers.AdaptiveLinesearchParams.Builder setStepSizeReductionExponent​(double value)
         The step size reduction exponent defines a step size given by
         (1 - (total_steps_attempted + 1)^(-step_size_reduction_exponent)) *
         step_size_limit where step_size_limit is the maximum allowed step size at
         the current iteration. This should be between 0.1 and 1.
         
        optional double step_size_reduction_exponent = 1 [default = 0.3];
        Parameters:
        value - The stepSizeReductionExponent to set.
        Returns:
        This builder for chaining.
      • clearStepSizeReductionExponent

        public Solvers.AdaptiveLinesearchParams.Builder clearStepSizeReductionExponent()
         The step size reduction exponent defines a step size given by
         (1 - (total_steps_attempted + 1)^(-step_size_reduction_exponent)) *
         step_size_limit where step_size_limit is the maximum allowed step size at
         the current iteration. This should be between 0.1 and 1.
         
        optional double step_size_reduction_exponent = 1 [default = 0.3];
        Returns:
        This builder for chaining.
      • hasStepSizeGrowthExponent

        public boolean hasStepSizeGrowthExponent()
         The step size growth exponent defines a step size given by (1 +
         (total_steps_attempted + 1)^(-step_size_growth_exponent)) * step_size_.
         This should be between 0.1 and 1.
         
        optional double step_size_growth_exponent = 2 [default = 0.6];
        Specified by:
        hasStepSizeGrowthExponent in interface Solvers.AdaptiveLinesearchParamsOrBuilder
        Returns:
        Whether the stepSizeGrowthExponent field is set.
      • getStepSizeGrowthExponent

        public double getStepSizeGrowthExponent()
         The step size growth exponent defines a step size given by (1 +
         (total_steps_attempted + 1)^(-step_size_growth_exponent)) * step_size_.
         This should be between 0.1 and 1.
         
        optional double step_size_growth_exponent = 2 [default = 0.6];
        Specified by:
        getStepSizeGrowthExponent in interface Solvers.AdaptiveLinesearchParamsOrBuilder
        Returns:
        The stepSizeGrowthExponent.
      • setStepSizeGrowthExponent

        public Solvers.AdaptiveLinesearchParams.Builder setStepSizeGrowthExponent​(double value)
         The step size growth exponent defines a step size given by (1 +
         (total_steps_attempted + 1)^(-step_size_growth_exponent)) * step_size_.
         This should be between 0.1 and 1.
         
        optional double step_size_growth_exponent = 2 [default = 0.6];
        Parameters:
        value - The stepSizeGrowthExponent to set.
        Returns:
        This builder for chaining.
      • clearStepSizeGrowthExponent

        public Solvers.AdaptiveLinesearchParams.Builder clearStepSizeGrowthExponent()
         The step size growth exponent defines a step size given by (1 +
         (total_steps_attempted + 1)^(-step_size_growth_exponent)) * step_size_.
         This should be between 0.1 and 1.
         
        optional double step_size_growth_exponent = 2 [default = 0.6];
        Returns:
        This builder for chaining.