Repository navigation
v3.0.0
Unfortunately, I have realized that the changes to constraints API in Basin 2.0 are much less ergonomic and have decided to switch back to the simpler approach of 1.x. I apologize to anyone who has already migrated, but hope that you find the new (old) API more pleasant to use. In short:
- Make constraint declarations optional.
CostFunction,Residual, and constraint callbacks no longer require a declaration. Unconstrained solvers ignore declared constraints, while constrained solvers continue to validate complete sets and reject unsupported blocks. - Rename the
ProblemConstraintstrait toConstraintsand theConstraintsdata container toConstraintSet. Rename the associated type toSetand the getter toconstraints.Constrained::newaccepts plain objectives and uses its supplied set as the complete declaration.
See the Basin 3.0 migration guide for more details.
Breaking changes
- make constraint declarations optional (
4e3326e)
Features
- make constraint declarations optional (
4e3326e)
Bug Fixes
- dev: keep
pnpmmanaged by Nix (52e7884)