Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convergence criteria: improve docs, add per-component gradient #1107

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Oct 26, 2024

  1. Conv. criteria: add per-component g_abstol

    This allows `options.g_abstol` to be either a scalar (the traditional
    choice) or a vector. The motivation for this change comes from the fact
    that the gradient is dependent on how each variable is scaled:
    
         f₁(x, y) = x^2 + y^2 + 1
    
    and
    
         f₂(x, y) = x^2 + 10^8 * y^2 + 1
    
    Both have the same minimizer and minimum value, but at any point other
    than the x-axis, derivatives with respect to `y` of `f₂` are much larger
    than those of `f₁`. When roundoff error becomes a factor, the
    convergence requirement should be adjusted accordingly.
    timholy committed Oct 26, 2024
    Configuration menu
    Copy the full SHA
    c11c6b2 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2024

  1. Configuration menu
    Copy the full SHA
    47f2277 View commit details
    Browse the repository at this point in the history