Traits for solvers (optimization and Krylov) #39
abelsiqueira
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This involves SolverCore, all solvers, and JSOSuite, possibly changing the definition of JSO-compliant (ref. #38), and also @dpo and I had a discussion some time ago about this, in the context of allowing specific Krylov solvers for the subsolvers (JuliaSmoothOptimizers/JSOSolvers.jl#85).
Instead of creating a table to inform what the solvers are capable of, we could use traits.
This allows dispatching, which should also help make things type-stable.
A normal implementation of traits is what is called Holy traits:
Do we want this? Is there a better alternative?
Beta Was this translation helpful? Give feedback.
All reactions