optimal color
This commit is contained in:
parent
848a2f9a44
commit
1548e29cc6
@ -9,7 +9,7 @@ def generate_cities(nb, max_coords=1000):
|
|||||||
nb_ville = 100
|
nb_ville = 100
|
||||||
max_coords = 1000
|
max_coords = 1000
|
||||||
nb_truck = 1
|
nb_truck = 1
|
||||||
temperature = 20000 #10000
|
temperature = 10000
|
||||||
cooling_rates = [ 0.999 , 0.99, 0.9 , 0.8]
|
cooling_rates = [ 0.999 , 0.99, 0.9 , 0.8]
|
||||||
temperature_ok = 0.001
|
temperature_ok = 0.001
|
||||||
|
|
||||||
@ -36,8 +36,8 @@ colors = [
|
|||||||
'#1f77b4', # Bleu moyen
|
'#1f77b4', # Bleu moyen
|
||||||
'#ff7f0e', # Orange
|
'#ff7f0e', # Orange
|
||||||
'#2ca02c', # Vert
|
'#2ca02c', # Vert
|
||||||
'#d62728', # Rouge
|
|
||||||
'#9467bd', # Violet
|
'#9467bd', # Violet
|
||||||
|
'#d62728', # Rouge
|
||||||
'#8c564b', # Marron
|
'#8c564b', # Marron
|
||||||
'#e377c2', # Rose
|
'#e377c2', # Rose
|
||||||
'#7f7f7f', # Gris
|
'#7f7f7f', # Gris
|
||||||
@ -83,5 +83,5 @@ plt.xlabel('Iteration')
|
|||||||
plt.ylabel('Total distance')
|
plt.ylabel('Total distance')
|
||||||
plt.legend(loc='upper right')
|
plt.legend(loc='upper right')
|
||||||
plt.title('Total distance over iterations for different cooling rates')
|
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()
|
plt.show()
|
||||||
Loading…
x
Reference in New Issue
Block a user