**************************************** Average of Best Fitness Per Generation **************************************** This section provides a detailed view of how the **best individual** in each generation evolves across all **experiments** within a given **round**. The data is represented in a line chart that displays the **mean best fitness** per generation. .. image:: ../_static/mean_best_fitness_per_gen_1graph.png :alt: Mean Best Fitness per Generation - Round 1 :width: 700px :align: center Each point in the curve represents the **average fitness value** of the best individual from each experiment for a given generation. To illustrate how this is computed, consider the table shown below: .. image:: ../_static/table.png :alt: Best fitness table for Round 1 :width: 400px :align: center Take **generation 1** as an example: - Experiment 1: Best fitness = 0.5702 - Experiment 2: Best fitness = 0.5853 - Experiment 3: Best fitness = 0.7656 - **Average** = (0.5702 + 0.5853 + 0.7656) / 3 = **0.6404** This average value is plotted as the point corresponding to generation 1 on the chart. The same process is repeated for all 20 generations, producing a smooth curve that allows the user to evaluate: - **Convergence speed**: How quickly the algorithm approaches optimal values. - **Stability**: Whether the curve stabilizes or oscillates. - **Performance**: General fitness trend across time. **Note:** This visualization is fundamental to assess the efficiency of parameter settings and identify whether the genetic algorithm is behaving as expected. Keep Graph and Navigating Between Rounds **************************************** When the **Keep Graph** checkbox is selected, GADEMO stores the results of each new **round** without erasing the data from previous executions. This allows the user to **accumulate** multiple rounds and visualize their evolution in the same chart, which is essential for comparative performance analysis. .. image:: ../_static/keeping_results1.png :alt: Keep Graph and Result Navigation :width: 800px :align: center As shown above: - The **checkbox Keep Graph** (bottom right) allows **retaining previous results** when running a new round. - The **left/right arrow buttons** (below the result table) let the user **navigate through the stored rounds**, displaying the parameters and detailed table for each execution. For instance, in the example above: - Round 1 and Round 2 are both plotted on the graph. - The table currently displayed refers to **Round 2**, as indicated at the top right of the table section. .. important:: If the **Keep Graph** checkbox is **unchecked**, all previous results will be **erased** when a new round is executed. Therefore, if the user wants to keep a cumulative visual history of all runs, **they must keep this checkbox selected before pressing Run**.