optimal color

This commit is contained in:
Rom168 2023-06-20 10:22:40 +02:00
parent 848a2f9a44
commit 1548e29cc6

View File

@ -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()