Class SalaryCapOptimizer
java.lang.Object
org.episteme.social.sports.SalaryCapOptimizer
Provides algorithms for optimizing sports rosters under financial salary cap constraints.
Uses a greedy approximation of the Knapsack problem.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordData model for a player's performance and salary. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<SalaryCapOptimizer.Player> optimizeRoster(List<SalaryCapOptimizer.Player> pool, double budget) Optimizes a roster by selecting the best rated players within a total budget.
-
Method Details
-
optimizeRoster
public static List<SalaryCapOptimizer.Player> optimizeRoster(List<SalaryCapOptimizer.Player> pool, double budget) Optimizes a roster by selecting the best rated players within a total budget. Uses a efficiency-based greedy approach (rating per dollar).- Parameters:
pool- available playersbudget- maximum total salary spend- Returns:
- the optimized roster of players
-