Newer
Older
#Pkg.add(url="https://gitlab.gwdg.de/smuehle1/RidePooling/", rev="planned_pickup")
#Pkg.instantiate() #there may be an error here concerning PyCall. The dependencies assume Python to be installed on your system, with package 'matplotlib' installed.
#Either just run 'conda install -c conda-forge matplotlib' in your system shell, or follow instructions below (after running this cell and getting an error) to solve everything from within Julia.
RP = RidePooling
global index=eval(Meta.parse(ARGS[1]))
println("Taken Command line values:\n\tIndex=$index\n\tsettings_path=$settings_path")
catch e
print(e)
global settings_path = "./standard_settings.jl"
global index=1#eval(Meta.parse(ARGS[1]))
println("Take standard values:\n\tIndex=$index\n\tsettings_path=$settings_path")
include(settings_path)
#TODO Is this actually needed? include("./sim_functions.jl")#
error("Please create data folder at $(paths[:data])")
return
error("Please create model folder at $(paths[:model])")
return
map_folder = paths[:map]
include(paths[:dispatcher]*"dispatcher.jl")
println("x = $x\t y = $y")
specs=(;
map=mymap,
route_matrix=RM,
subspaces=:all_edges,
routing=:lookup,
speed_dict = speed_dict,
seed = 1,
specs = merge(specs, dispatcher)
@time data = simulate_rp(paths,N, x, y, t0, specs, request_type, served=served, requested=requested)