@@ -8,16 +8,14 @@ using OptimalTransportNetworks
88# Set parameters: try with labor mobility: true/false, convex: beta>=gamma,
99# nonconvex: gamma>beta, cross good congestion: true/false
1010
11- param = init_parameters (labor_mobility = true , K = 10 , gamma = 1 , beta = 1 , verbose = true ,
12- N = 1 , cross_good_congestion = false , nu = 1 , duality = false )
13-
14- # tol is the tolerance in distance b/w iterations for road capacity
15- # kappa=I^gamma/delta_i, default is 1e-7 but we relax it a bit here
11+ param = init_parameters (labor_mobility = true , K = 10 , gamma = 1 , beta = 1 , N = 1 ,
12+ cross_good_congestion = true )
1613
1714# ------------
1815# Init network
1916
20- graph = create_graph (param, 11 , 11 , type = " map" ) # create a map network of 11x11 nodes located in [0,10]x[0,10]
17+ # create a map network of 11x11 nodes located in [0,10]x[0,10]
18+ graph = create_graph (param, 11 , 11 , type = " map" )
2119# note: by default, productivity and population are equalized everywhere
2220
2321# Customize graph
@@ -33,7 +31,6 @@ graph[:Zjn][Ni, :] .= 1 # central node more productive
3331
3432
3533# Plot the network with the optimal transportation plan
36-
3734plot_graph (graph, results[:Ijk ], node_sizes = results[:Cj ])
3835
3936# The size/shade of the nodes reflects the total consumption at each node
0 commit comments