Wikunia / ConstraintSolver.jl

ConstraintSolver in Julia: Blog posts ->
https://opensourc.es/blog/constraint-solver-1
MIT License
136 stars 14 forks source link

Refactor MOI_wrapper/constraints.jl #218

Closed Wikunia closed 3 years ago

Wikunia commented 3 years ago

Currently there is a lot of code that is copy pasted for the add constraint methods. The idea is to have a single add constraint method which accepts all constraints and creates the ConstraintInternals.

It then dispatches to the more specific functionalities and maybe even provides a fallback to create a basic constraint.