Skip to content

wyli/gradient

Repository files navigation

gradient

Optimization path comparisons:

  • Newton and modified Newton
  • symmetric-rank-one quasi-Newton
  • BFGS
  • Fletcher–Reeves nonlinear conjugate gradient
  • backtracking and interpolating Armijo line searches

The original figure layout and plotting style are preserved. Running main.py regenerates the three figures with the corrected numerical paths.

python3 -m venv .venv
.venv/bin/pip install -r requirements-dev.txt
.venv/bin/pytest
MPLBACKEND=Agg .venv/bin/python main.py

Quadratic comparison Newton and quasi-Newton comparison Rosenbrock method comparison

About

practice of newton like methods (with some julia experience)

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors