rohde01 / field-schedule

0 stars 0 forks source link

Proposed Streamlined Variable Structure #3

Closed rohde01 closed 3 days ago

rohde01 commented 2 weeks ago

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.

rohde01 commented 1 week 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.

  1. Utilize Interval Variables for Sessions

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.