A simpler approach uses mixed-integer LP (MIP) and a mathematical programming DSL like julia/JuMP or python/pyomo. Here's a trivial and fast MIP solution using python/pulp, which would be essentially the same in any…
A simpler approach uses mixed-integer LP (MIP) and a mathematical programming DSL like julia/JuMP or python/pyomo. Here's a trivial and fast MIP solution using python/pulp, which would be essentially the same in any…