numopt-js
    Preparing search index...

    Interface LineSearchOptions

    Options for line search algorithm.

    interface LineSearchOptions {
        armijoParameter?: number;
        contractionFactor?: number;
        initialStepSize?: number;
        maxIterations?: number;
    }
    Index

    Properties

    armijoParameter?: number

    Armijo condition parameter (sufficient decrease). Default: 0.1

    contractionFactor?: number

    Contraction factor for backtracking line search. Step size is multiplied by this factor when condition is not met. Default: 0.5

    initialStepSize?: number

    Initial step size to try. If not provided, the initial step size is automatically scaled by the gradient norm: α₀ = 1.0 / ||∇f(x)|| This prevents steps from being too large when gradients are large, improving convergence performance. If the gradient norm is very small (< 1e-10) or the computed step size is not finite, the default value of 1.0 is used.

    maxIterations?: number

    Maximum number of line search iterations. Default: 50