matbesancon / MathOptSetDistances.jl

Distances to sets for MathOptInterface
MIT License
24 stars 4 forks source link

Test projections against AD #8

Closed matbesancon closed 3 years ago

matbesancon commented 4 years ago

AD should work on these functions and let us check automatically if the automatic gradient is equal to the analytical form we provide

akshay326 commented 4 years ago

a really good point. that might even reduce the code for the projection gradients

akshay326 commented 4 years ago

oh. saw #6 just now :sweat_smile:

matbesancon commented 4 years ago

haha yes, I think we should keep the manual checks for now, but:

  1. test against another diff system, ForwardDiff or FiniteDiff
  2. implement ChainRules later
matbesancon commented 3 years ago

Done against FiniteDifference with accuracy tolerance in #15