We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68c3f7b commit e95853dCopy full SHA for e95853d
1 file changed
examples/paper_example04.jl
@@ -22,7 +22,7 @@ nb_cities = 20 # draw a number of random cities in space
22
for i in 1:nb_cities-1
23
newdraw = false
24
while newdraw == false
25
- j = round(Int, 1 + rand() * (g[:J] - 1))
+ j = round(Int, 1 + rand() * (g0[:J] - 1))
26
if param[:Lj][j] <= 1e-3
27
newdraw = true
28
param[:Lj][j] = 1
@@ -34,7 +34,7 @@ param[:hj] = param[:Hj] ./ param[:Lj]
34
param[:hj][param[:Lj] .== 1e-3] .= 1
35
36
# Draw geography
37
-z = zeros(g[:J]) # altitude of each node
+z = zeros(g0[:J]) # altitude of each node
38
geographies = Dict()
39
geographies[:blank] = (z = z, obstacles = nothing)
40
0 commit comments