SciML / Optimization.jl

Mathematical Optimization in Julia. Local, global, gradient-based and derivative-free. Linear, Quadratic, Convex, Mixed-Integer, and Nonlinear Optimization in one simple, fast, and differentiable interface.
https://docs.sciml.ai/Optimization/stable/
MIT License
704 stars 77 forks source link

Make AutoZygote robust to zero gradients #609

Closed ChrisRackauckas closed 10 months ago

ChrisRackauckas commented 10 months ago

Zygote returns nothing for a true zero.

codecov[bot] commented 10 months ago

Codecov Report

Merging #609 (72f75b6) into master (18d4468) will decrease coverage by 1.14%. The diff coverage is 0.00%.

@@            Coverage Diff            @@
##           master    #609      +/-   ##
=========================================
- Coverage    9.46%   8.33%   -1.14%     
=========================================
  Files          40      40              
  Lines        2694    2700       +6     
=========================================
- Hits          255     225      -30     
- Misses       2439    2475      +36     
Files Coverage Δ
ext/OptimizationZygoteExt.jl 0.00% <0.00%> (-24.33%) :arrow_down:

... and 1 file with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more