Skip to content

Commit 4f6027d

Browse files
committed
Fix parameterization.
1 parent 4fd8834 commit 4f6027d

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

examples/paper_example02.jl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,19 @@ welfare_increase = (results[3][:welfare] / results[2][:welfare]) ^ (1 / (param[:
5454
# Plot results
5555

5656
plots = 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)
6059
title!(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)
6261
title!(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)
6564
title!(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)
6766
title!(plots[4], "Nonconvex Shipping (Q_{jk})")
6867

6968
plots[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)
7170
title!(plots[6], "Nonconvex Network (I_{jk})")
7271
annotate!(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

Comments
 (0)