56 int GetTeacherIndex(
int course_index,
int section);
58 void InsertSortedPairs(absl::Span<const int> list,
ConflictPairs* pairs);
60 bool ShouldCreateVariable(
int course_index,
int section,
int time_slot,
63 std::vector<int> GetRoomIndices(
const Course& course);
65 std::vector<absl::flat_hash_set<int>> GetClassesByTimeSlot(
68 void AddVariableIfNonNull(
double coeff,
const MPVariable* var,
74 bool solve_for_rooms_;
79 std::vector<absl::flat_hash_set<int>> teacher_to_classes_;
80 std::vector<absl::flat_hash_set<int>> teacher_to_restricted_slots_;
81 std::vector<std::vector<int>> course_to_classes_;