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
688 stars 75 forks source link

Fixed issue #683: error when `store_trace=true` in OptimizationEvolutionary.jl #691

Closed jonathanfischer97 closed 5 months ago

jonathanfischer97 commented 5 months ago

Checklist

Additional context

Connected to issue https://github.com/SciML/Optimization.jl/issues/683#issue-2097221022

codecov[bot] commented 5 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (28028fe) 8.62% compared to head (661bcf5) 8.62%.

Files Patch % Lines
...zationEvolutionary/src/OptimizationEvolutionary.jl 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #691 +/- ## ====================================== Coverage 8.62% 8.62% ====================================== Files 31 31 Lines 2515 2515 ====================================== Hits 217 217 Misses 2298 2298 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

jonathanfischer97 commented 5 months ago

Can you add a test for the error you had seen before?

Will do!

jonathanfischer97 commented 5 months ago

@Vaibhavdixit02 added a test which fails on current version but passes on my fork.

Error "type Array has no field value" was thrown prior to my fix.