Skip to content
 
Documentation pymor.algorithms.line_search
Type to start searching
    • pyMOR v2026.2.0.dev0 Manual
    • API Reference
    • pymor.algorithms
    • Getting Started
    • Available MOR methods
    • Tutorials
    • Demo Scripts
    • API Reference
      • pymor.algorithms
        • pymor.algorithms.adaptivegreedy
        • pymor.algorithms.basic
        • pymor.algorithms.bernoulli
        • pymor.algorithms.bfgs
        • pymor.algorithms.chol_qr
        • pymor.algorithms.dmd
        • pymor.algorithms.ei
        • pymor.algorithms.eigs
        • pymor.algorithms.error
        • pymor.algorithms.gram_schmidt
        • pymor.algorithms.greedy
        • pymor.algorithms.hapod
        • pymor.algorithms.image
        • pymor.algorithms.krylov
        • pymor.algorithms.lincomb
        • pymor.algorithms.line_search
          • armijo
          • constrained_armijo
        • pymor.algorithms.loewner
        • pymor.algorithms.ml
        • pymor.algorithms.pca
        • pymor.algorithms.pod
        • pymor.algorithms.preassemble
        • pymor.algorithms.projection
        • pymor.algorithms.rand_la
        • pymor.algorithms.rules
        • pymor.algorithms.samdp
        • pymor.algorithms.scm
        • pymor.algorithms.simplify
        • pymor.algorithms.svd_va
        • pymor.algorithms.symplectic
        • pymor.algorithms.timestepping
        • pymor.algorithms.to_matrix
        • pymor.algorithms.tr
      • pymor.analyticalproblems
      • pymor.basic
      • pymor.bindings
      • pymor.core
      • pymor.discretizers
      • pymor.models
      • pymor.operators
      • pymor.parallel
      • pymor.parameters
      • pymor.reductors
      • pymor.scripts
      • pymor.solvers
      • pymor.tools
      • pymor.vectorarrays
    • Technical Overview
    • Release Notes
    • Developer Documentation
    • Environment Variables
    • Bibliography

    pymor.algorithms.line_search¶

    Functions

    armijo

    Unconstrained Armijo line search algorithm.

    constrained_armijo

    Constrained Armijo line search algorithm.

    pymor.algorithms.line_search.armijo(f, starting_point, direction, grad=None, initial_value=None, alpha_init=1.0, tau=0.5, beta=0.0001, maxiter=10)[source]¶

    Unconstrained Armijo line search algorithm.

    This method computes a step size such that the unconstrained Armijo condition (see [NW06], p. 33) is fulfilled.

    Parameters:
    • f – Real-valued function that can be evaluated for its value.

    • starting_point – A VectorArray of length 1 containing the starting point of the line search.

    • direction – Descent direction along which the line search is performed.

    • grad – Gradient of f in the point starting_point as either a VectorArray or a NumPy array.

    • initial_value – Value of f in the point starting_point.

    • tau – The fraction by which the step size is reduced in each iteration.

    • beta – Control parameter to adjust the required decrease of the function value of f.

    • maxiter – Use alpha_init as default if the iteration count reaches this value without finding a point fulfilling the Armijo condition.

    Returns:

    • alpha – Step size computed according to the Armijo condition.

    • iterations – Number of total Armijo line search iterations.

    Defaults

    alpha_init, tau, beta, maxiter (see pymor.core.defaults)

    pymor.algorithms.line_search.constrained_armijo(f, starting_point, direction, armijo_condition=None, grad=None, initial_value=None, alpha_init=1.0, tau=0.5, beta=0.0001, maxiter=10)[source]¶

    Constrained Armijo line search algorithm.

    This method computes a step size such that the given constrained Armijo condition is fulfilled.

    Parameters:
    • f – Real-valued function that can be evaluated for its value.

    • starting_point – A VectorArray of length 1 containing the starting point of the line search.

    • direction – Descent direction along which the line search is performed.

    • armijo_condition – A callable used as the Armijo termination condition during the step length computation.

    • grad – Gradient of f in the point starting_point as either a VectorArray or a NumPy array.

    • initial_value – Value of f in the point starting_point.

    • tau – The fraction by which the step size is reduced in each iteration.

    • beta – Control parameter to adjust the required decrease of the function value of f.

    • maxiter – Use alpha_init as default if the iteration count reaches this value without finding a point fulfilling the Armijo condition.

    Returns:

    • alpha – Step size computed according to the Armijo condition.

    • iterations – Number of total Armijo line search iterations.

    Defaults

    alpha_init, tau, beta, maxiter (see pymor.core.defaults)

    "Previous" pymor.algorithms.lincomb
    "Next" pymor.algorithms.loewner
    © Copyright pyMOR developers and contributors.
    Last updated on Nov 27, 2026.
    Created using Sphinx 9.1.1. and Material for Sphinx