Repository navigation
Visualisation
Visualisation of the scheduler project seeks to inform the user with meaningful and live feedback that illustrate the algorithm's approach to generating the valid optimal schedules.
Currently, our belief is that the client would have an appreciation for the following statistics:
- Time elapsed in generating the solution.
- Current thread of the partial solution being displayed
- Number of states in memory.
- Number of states explored
- Current best partial solution, and its underestimate + current finish time.
The following models may be appropriate for the representation of the desired statistics:
- Current best schedule represented as a Gantt chart.
- Statistics panel and estimated time till completion.
- Heat-map of current nodes visited by the partial solutions generated.
Sequential
The Gantt schedule graph shows live feedback of the current best partial solution based on the solution's underestimate, which is extracted from the head of the priority queue of the A* algorithm. Using the grid lines of the time axis, users can analyze the start and finish times of each task that has been scheduled in the partial solution. Once the algorithm has finished, the schedule graph will remain static, showing the optimal solution that has been found from the A* algorithm.
Parallel
The same information is shown in the Gantt schedule graph as in sequential. However, the Gantt schedule cycles through the threads, showing their current best schedule from the head of the priority queue. Once the algorithm has finished, the optimal solutions from each thread will be cycled through. The overall optimal solution will be on the main thread
The statistics pane shows various statistics that are essential for the understanding of the partial or full solution. The pane covers:
- Timer: shows time elapsed
- Current Thread: the current thread for which the Gantt chart is from
- Current Finish Time: latest finish time in the schedule
- Underestimate: the underestimate of the partial schedule. If the algorithm has finished, the value should be equal to the current Finish Time.
- States Explored: the number of partial solutions that have been expanded thus far.
- States in Memory: the number of partial solutions currently in the priority queue.
The heatmap graph is a graphic representation of the input graph. As the algorithm progresses, the partial solutions will gradually visit more and more nodes in the input graph. Thus, using the number of times each node is visited by a partial solution, a heatmap is generated where the colour of each node is based on the number of times the node is visited as a proportion of the node with the maximum number of times visited. As the algorithm progresses, the colours of the nodes near the bottom of the tree will gradually increase, showing a graphic representation of how the A* algorithm is exploring the state space.