Network Flows, Algorithms, Modeling, Data Science, Artificial Intelligence.
network flow algorithms from source(s) to sink(t) and to get the optimal matching given the constraints and definition. This may sometimes need some post-tweaking depending on your definitions and constraints, however, this is a simple way to model this problem. The solution to the extended