@@ -54,20 +54,19 @@ welfare_increase = (results[3][:welfare] / results[2][:welfare]) ^ (1 / (param[:
5454# Plot results
5555
5656plots = Vector {Any} (undef, 6 ) # Initialize an empty array to hold the subplots
57- shades = sizes = results[i][:Cj ] / maximum (results[i][:Cj ])
5857
59- plots[1 ] = plot_graph (g, results[1 ][:Ijk ], node_sizes = sizes , node_shades = shades , node_sizes_scale = 40 )
58+ plots[1 ] = plot_graph (g, results[1 ][:Ijk ], node_sizes = results[ 1 ][ :Lj ] , node_shades = results[ 1 ][ :Cj ] , node_sizes_scale = 40 )
6059title! (plots[1 ], " Convex Network (I_{jk})" )
61- plots[2 ] = plot_graph (g, results[1 ][:Qjkn ][:, :, 1 ], edge_color = :brown , arrows = true , node_sizes = sizes , node_shades = shades , node_sizes_scale = 40 )
60+ plots[2 ] = plot_graph (g, results[1 ][:Qjkn ][:, :, 1 ], edge_color = :brown , arrows = true , node_sizes = results[ 1 ][ :Lj ] , node_shades = results[ 1 ][ :Cj ] , node_sizes_scale = 40 )
6261title! (plots[2 ], " Convex Shipping (Q_{jk})" )
6362
64- plots[3 ] = plot_graph (g, results[2 ][:Ijk ], node_sizes = sizes , node_shades = shades , node_sizes_scale = 40 )
63+ plots[3 ] = plot_graph (g, results[2 ][:Ijk ], node_sizes = results[ 2 ][ :Lj ] , node_shades = results[ 2 ][ :Cj ] , node_sizes_scale = 40 )
6564title! (plots[3 ], " Nonconvex Network (I_{jk})" )
66- plots[4 ] = plot_graph (g, results[2 ][:Qjkn ][:, :, 1 ], edge_color = :brown , arrows = true , node_sizes = sizes , node_shades = shades , node_sizes_scale = 40 )
65+ plots[4 ] = plot_graph (g, results[2 ][:Qjkn ][:, :, 1 ], edge_color = :brown , arrows = true , node_sizes = results[ 2 ][ :Lj ] , node_shades = results[ 2 ][ :Cj ] , node_sizes_scale = 40 )
6766title! (plots[4 ], " Nonconvex Shipping (Q_{jk})" )
6867
6968plots[5 ] = plots[3 ]
70- plots[6 ] = plot_graph (g, results[3 ][:Ijk ], node_sizes = sizes , node_shades = shades , node_sizes_scale = 40 )
69+ plots[6 ] = plot_graph (g, results[3 ][:Ijk ], node_sizes = results[ 3 ][ :Lj ] , node_shades = results[ 3 ][ :Cj ] , node_sizes_scale = 40 )
7170title! (plots[6 ], " Nonconvex Network (I_{jk})" )
7271annotate! (plots[6 ], [(0.5 , 1.04 , text (" With Annealing. Welfare increase: $(round ((welfare_increase- 1 )* 100 , digits = 2 )) %" , :black , :center , 10 ))])
7372
0 commit comments