Closed rohde01 closed 3 days ago
the model runs fast on smaller inputs as defined in test_data.py, but when the number of teams and fields increases, the model becomes significantly slower.
What to Do: For each team and each of their required sessions, create an interval variable representing the session. The interval variable has a start time, duration. Benefits: Reduces the number of variables by representing a session as a single entity rather than multiple binary variables. Simplifies the modeling of sessions and their timings.
Instead of maintaining separate y_vars, session_combo_vars, and x_vars, we can define a single set of variables that capture all necessary information. The proposed variable is:
session_vars[team][day][start][field_combo]: A binary variable indicating whether a team starts a session at a specific time on a specific day using a particular field combination. This consolidation reduces the number of variables and simplifies the relationships between them. might improve performance.