Implement combinatorial optimization for weighting
Implement combinatorial optimization for weighting