Add a TimeSlot object, refactor
This commit is contained in:
@@ -92,7 +92,7 @@ public class TeamScheduler
|
||||
var timeSlotTeams = new Team[_timeSlots.Length][];
|
||||
|
||||
if (cpSolverStatus is not (CpSolverStatus.Optimal or CpSolverStatus.Feasible))
|
||||
return new TeamSchedulerSolution(timeSlotTeams, cpSolverStatus.ToString());
|
||||
return new TeamSchedulerSolution(timeSlotTeams, _studentObjects.ToArray(), cpSolverStatus.ToString());
|
||||
|
||||
Debug.WriteLine($"Total cost: {solver.ObjectiveValue}\n");
|
||||
|
||||
@@ -102,6 +102,6 @@ public class TeamScheduler
|
||||
timeSlotTeams[s] = teams;
|
||||
}
|
||||
//Debug.WriteLine("No solution found.");
|
||||
return new TeamSchedulerSolution(timeSlotTeams, cpSolverStatus.ToString());
|
||||
return new TeamSchedulerSolution(timeSlotTeams, _studentObjects.ToArray(), cpSolverStatus.ToString());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user