Wikunia / ConstraintSolver.jl

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

observer pattern for variable change #269

Open Wikunia opened 2 years ago

Wikunia commented 2 years ago

Currently the maximum and minimum values are updated inside a linear constraint whenever it's called. Even if only one variable was changed all are updated. I think we could speed this up by having a way to let a constraint type subscribe to changes in a variable. When a variable is changed the constraint would be able to update specific values.