From 1548e29cc617cfbebf08979d7e2d5564d139700d Mon Sep 17 00:00:00 2001 From: Rom168 Date: Tue, 20 Jun 2023 10:22:40 +0200 Subject: [PATCH] optimal color --- ..._recuit_no_animation_no_random_colling_rate_variation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/03_cluster_recuit_no_animation_no_random_colling_rate_variation.py b/tests/03_cluster_recuit_no_animation_no_random_colling_rate_variation.py index 3f6bccd..5efbb67 100644 --- a/tests/03_cluster_recuit_no_animation_no_random_colling_rate_variation.py +++ b/tests/03_cluster_recuit_no_animation_no_random_colling_rate_variation.py @@ -9,7 +9,7 @@ def generate_cities(nb, max_coords=1000): nb_ville = 100 max_coords = 1000 nb_truck = 1 -temperature = 20000 #10000 +temperature = 10000 cooling_rates = [ 0.999 , 0.99, 0.9 , 0.8] temperature_ok = 0.001 @@ -36,8 +36,8 @@ colors = [ '#1f77b4', # Bleu moyen '#ff7f0e', # Orange '#2ca02c', # Vert - '#d62728', # Rouge '#9467bd', # Violet + '#d62728', # Rouge '#8c564b', # Marron '#e377c2', # Rose '#7f7f7f', # Gris @@ -83,5 +83,5 @@ plt.xlabel('Iteration') plt.ylabel('Total distance') plt.legend(loc='upper right') plt.title('Total distance over iterations for different cooling rates') -plt.axhline(y=optimal, color='r') +plt.axhline(y=optimal, color='black', linestyle='--') plt.show() \ No newline at end of file