Skip to content
Snippets Groups Projects
standard_settings.jl 1.07 KiB
Newer Older
  • Learn to ignore specific revisions
  • Ruben Haag's avatar
    Ruben Haag committed
    using Pkg
    Pkg.activate(".")
    import RidePooling
    RP = RidePooling
    include("./sim_functions.jl")
    
    
    
    request_type=:earliest_pickup                       # request_type that should be simulated
    
    rhaag's avatar
    rhaag committed
    #name="test_1"                                         # Name of the simulation
    path="/scratch01.local/rhaag/$(String(request_type))/$name/"  # Path were everything will be saved
    
    Ruben Haag's avatar
    Ruben Haag committed
    
    
    # Simulation Settings
    N=1 #Number of Busses
    requested = 1 * N        # Number of requests, that need to be made
    served = 1 * N           # Number of requests, that need to be served
    
    #Random Generator
    rng_type = :notRandom
    
    # For mapping the 1D Index to 2D
    xBounds = (4, 60)
    yBounds = (0.1, 1.5)
    im_size = (40, 40)
    indexing_method = getLogLogValue
    
    
    
    # File Organization
    paths = Dict(:data => "/results/data/",
                :model => "/results/model/",
                :map => "/example_map/map/",
                :dispatcher => "/example_map/delays_wt1reldelta1/")
    
    
    
    
    # Functions
    indexing(index) = indexing_method(index-1, xBounds..., im_size[1], yBounds..., im_size[2])
    
    for (name, subdir) in paths
        paths[name] = path * subdir
    end