Expand description
Certified minimum-cost bipartite assignment.
The unrestricted solver is a polynomial min-cost-flow reduction. The no-crossing policy uses a polynomial sequence-alignment dynamic program, because pairwise voice-order constraints are not ordinary edge costs. Both paths return independently checkable optimality certificates.
Structs§
- Assignment
- A complete minimum-cost assignment and its optimality certificate.
- Assignment
Policy - Costs and structural rules for one assignment.
- Cost
Matrix - Dense row-major costs between source and target items.
Enums§
- Assignment
Certificate - Optimality witness for one of the two assignment solvers.
- Assignment
Operation - One edit or correspondence in a complete bipartite assignment.
- Doubling
Policy - Whether one source may supply multiple targets.
- Voice
Crossing Policy - Policy for assignments that reverse the order of two source voices.
Traits§
- Assignment
Cost - Additive, ordered cost used by certified assignment.
Functions§
- min_
cost_ assignment - Finds a minimum-cost assignment under insertion, deletion, doubling, and voice-crossing rules.
- min_
cost_ assignment_ with_ control - Finds a minimum-cost assignment under explicit work and cancellation control.
- verify_
assignment - Verifies assignment feasibility, exact cost, and the supplied optimality certificate.