All Projects → sash-ko → simobility

sash-ko / simobility

Licence: MIT License
simobility - light-weight mobility simulation framework. Best for quick prototyping

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects
shell
77523 projects

Projects that are alternatives of or similar to simobility

Carla
Open-source simulator for autonomous driving research.
Stars: ✭ 7,012 (+24079.31%)
Mutual labels:  simulator, autonomous-vehicles
Airsim
Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
Stars: ✭ 12,528 (+43100%)
Mutual labels:  simulator, autonomous-vehicles
Duckietown.jl
Differentiable Duckietown
Stars: ✭ 29 (+0%)
Mutual labels:  simulator, autonomous-vehicles
dose
Digital Organism Simulation Environment (DOSE)
Stars: ✭ 44 (+51.72%)
Mutual labels:  simulator, simulation-framework
LSTM-Mobility-Model
LSTM Mobility Model implementation using Tensorflow
Stars: ✭ 19 (-34.48%)
Mutual labels:  transportation, mobility-modeling
Maro
Multi-Agent Resource Optimization (MARO) platform is an instance of Reinforcement Learning as a Service (RaaS) for real-world resource optimization problems.
Stars: ✭ 378 (+1203.45%)
Mutual labels:  simulator, transportation
Webots
Webots Robot Simulator
Stars: ✭ 1,324 (+4465.52%)
Mutual labels:  simulator, autonomous-vehicles
photontorch
Highly parallel simulation and optimization of photonic circuits in time and frequency domain based on the deep-learning framework PyTorch
Stars: ✭ 29 (+0%)
Mutual labels:  simulator, simulation-framework
SelfDrivingCarsControlDesign
Self Driving Cars Longitudinal and Lateral Control Design
Stars: ✭ 96 (+231.03%)
Mutual labels:  simulation-framework, autonomous-vehicles
maas-schemas
Mobility as a Service API - data model, tests, and validation
Stars: ✭ 17 (-41.38%)
Mutual labels:  transportation, mobility
Libretaxi
Open source Uber #deleteuber
Stars: ✭ 3,687 (+12613.79%)
Mutual labels:  transportation, ridesharing
community-projects
Webots projects (PROTO files, controllers, simulation worlds, etc.) contributed by the community.
Stars: ✭ 20 (-31.03%)
Mutual labels:  simulator, autonomous-vehicles
Uselfdrivingsimulator
Self-Driving Car Simulator
Stars: ✭ 48 (+65.52%)
Mutual labels:  simulator, autonomous-vehicles
Awesome Carla
👉 CARLA resources such as tutorial, blog, code and etc https://github.com/carla-simulator/carla
Stars: ✭ 246 (+748.28%)
Mutual labels:  simulator, autonomous-vehicles
WazeCCPProcessor
Waze WARP takes your CCP data feed and processes it into your cloud provider for access, analysis, and visualization. An Open Government Coalition (OGC) project. @GovInTheOpen
Stars: ✭ 80 (+175.86%)
Mutual labels:  transportation, mobility
transitland-atlas
an open directory of mobility feeds and operators — powers both Transitland v1 and v2
Stars: ✭ 55 (+89.66%)
Mutual labels:  transportation, mobility
isosim
ISO8583 Web Simulator - Built with Go!
Stars: ✭ 80 (+175.86%)
Mutual labels:  simulator
FirstOrderSolvers.jl
Large scale convex optimization solvers in julia
Stars: ✭ 20 (-31.03%)
Mutual labels:  optimization-algorithms
road-simulator
🛣️ Easy-to-use road simulator for little self-driving cars
Stars: ✭ 23 (-20.69%)
Mutual labels:  simulator
drmips
I don't maintain this project anymore. Feel free to fork it! - Educational MIPS simulator
Stars: ✭ 41 (+41.38%)
Mutual labels:  simulator

simobility

simobility is a light-weight mobility simulation framework. Best for quick prototyping

simobility is a human-friendly Python framework that helps scientists and engineers to prototype and compare fleet optimization algorithms (autonomous and human-driven vehicles). It provides a set of building blocks that can be used to design different simulation scenarious, run simulations and calculate metrics. It is easy to plug in custom demand models, customer behavior models, fleet types, spatio-temporal models (for example, use OSRM for routing vehicles and machine learning models trained on historical data to predict ETA).

Motivation

Create an environment for experiments with machine learning algorithms for decision-making problems in mobility services and compare them to classical solutions.

Some examples:

Installation

pip install simobility

Contributions and thanks

Thanks to all who contributed to the concept/code:

Examples

Grid world simulation

Simple simulation

Taxi service

Log example

Benchmarks

Benchmark simulations with LinearRouter and GreedyMatcher. Simulations will run slower with OSRMRouter because OSRM cannot process requests as fast as the linear router.

Processor: 2,3 GHz Dual-Core Intel Core i5; Memory: 8 GB 2133 MHz LPDDR3

Simulated time Simulation step Vehicles Bookings per hour Execution time Generated events Pickup rate
1 hour 10 sec 50 100 4 sec 1082 96.97%
24 hours 1 min 50 100 12 sec 23745 88.37%
24 hours 10 sec 50 100 20 sec 23880 88.84%
12 hours 10 sec 200 100 18 sec 13337 99.89%
12 hours 10 sec 50 500 31 sec 40954 53.92%
12 hours 10 sec 200 500 46 sec 65444 99.3%
12 hours 10 sec 1000 500 1 min 48 sec 66605 99.98%
1 hour 1 min 1000 1000 14 sec 11486
1 hour 10 sec 1000 1000 18 sec 11631
24 hours 1 min 1000 1000 5 min 1 sec 262384
24 hours 10 sec 1000 1000 6 min 20 sec 262524

A heuristic that allows estimating a maximum number of booking a fleet of N vehicles can handle: assume that an avarage trip duration is 15 minute, than 1 vehicle can not more then handle 4 booking per hour and the upper limit for 1000 vehicles is 4000 bookings per hour.

Metrics example

{
    "avg_paid_utilization": 63.98,
    "avg_utilization": 96.87,
    "avg_waiting_time": 292.92,
    "created": 3998,
    "dropoffs": 589,
    "empty_distance": 640.37,
    "empty_distance_pcnt": 33.67,
    "fleet_paid_utilization": 63.98,
    "fleet_utilization": 96.87,
    "num_vehicles": 50,
    "pickup_rate": 15.48,
    "pickups": 619,
    "total_distance": 1902.04,
}

Simulation logs

The are multiple ways to collect simulation log - use CSV or InMemory log handler or implement your own handler: loggers

Read CSV logs with pandas:

import pandas as pd

data = pd.read_csv(
    "simulation_output.csv",
    sep=";",
    converters={"details": lambda v: eval(v)},
)

details = data.details.apply(pd.Series)

Run OSRM

wget http://download.geofabrik.de/north-america/us/new-york-latest.osm.pbf
docker run -t -v "${PWD}:/data" osrm/osrm-backend osrm-extract -p /opt/car.lua /data/new-york-latest.osm.pbf
docker run -t -v "${PWD}:/data" osrm/osrm-backend osrm-partition /data/new-york-latest.osrm
docker run -t -v "${PWD}:/data" osrm/osrm-backend osrm-customize /data/new-york-latest.osrm
docker run -d -t -i -p 5010:5000 -v "${PWD}:/data" osrm/osrm-backend osrm-routed --algorithm mld /data/new-york-latest.osrm
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].