Skip to content
Snippets Groups Projects
standard_settings.jl 1.34 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 = 20 #Number of Busses
    requested = 10000 * N        # Number of requests, that need to be made
    served = 10000 * N           # Number of requests, that need to be served
    
    Ruben Haag's avatar
    Ruben Haag committed
    
    #Random Generator
    rng_type = :notRandom
    
    # For mapping the 1D Index to 2D
    
    xBounds = (20, 80) # Frequency ν = x/t0
    yBounds = (0.1, 1.5)
    
    Ruben Haag's avatar
    Ruben Haag committed
    im_size = (40, 40)
    
    indexing_method = getLogValue
    
    Ruben Haag's avatar
    Ruben Haag committed
    
    
    t_max_wait = 2
    
    Ruben Haag's avatar
    Ruben Haag committed
    
    
    # File Organization
    paths = Dict(:data => "/results/data/",
                :model => "/results/model/",
    
                :map => "/example_map/map/"
                #:dispatcher => "/example_map/delays_wt1reldelta1/"
                # TODO Is this better in a seperate file? I think not, because I always will use the Same Dispatcher
    )
    
    
    dispatcher=(;
            cost=:trajectory_length,
            rejection_criterion=(((:total_travelling_time, 2, 0.5),))
    )
    
    Ruben Haag's avatar
    Ruben Haag committed
    
    
    
    
    # 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