All Projects → indyfree → FleetSim

indyfree / FleetSim

Licence: other
Event-based Simulation for Electric Vehicle Fleets

Programming Languages

Jupyter Notebook
11667 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to FleetSim

go-ocpp
v1.5 and v1.6 OCPP implementation in Golang
Stars: ✭ 38 (+80.95%)
Mutual labels:  electric-vehicles
code-delphi-async
Code examples from Delphi Event-based and Asynchronous Programming Book
Stars: ✭ 32 (+52.38%)
Mutual labels:  event-based
prophesee ros wrapper
ROS driver for Prophesee event-based sensors
Stars: ✭ 63 (+200%)
Mutual labels:  event-based
faas-sim
A framework for trace-driven simulation of serverless Function-as-a-Service platforms
Stars: ✭ 33 (+57.14%)
Mutual labels:  simpy
IDDataLogger
A DataLogger for Volkwagen ID vehicles. Includes an iOS Widget. Works with VW ID.3 and ID.4 vehicles.
Stars: ✭ 76 (+261.9%)
Mutual labels:  electric-vehicles
cpd-ocpp
Open Charge Point Protocol
Stars: ✭ 53 (+152.38%)
Mutual labels:  electric-vehicles
ocpp
Open Charge Point Protocol
Stars: ✭ 164 (+680.95%)
Mutual labels:  electric-vehicles
coord-sim
Lightweight flow-level simulator for inter-node network and service coordination (e.g., in cloud/edge computing or NFV).
Stars: ✭ 33 (+57.14%)
Mutual labels:  simpy
event based gaze tracking
Dataset release for Event-Based, Near-Eye Gaze Tracking Beyond 10,000 Hz
Stars: ✭ 31 (+47.62%)
Mutual labels:  event-based
vue-resize-sensor
detect container resizing
Stars: ✭ 75 (+257.14%)
Mutual labels:  event-based

CircleCI Code style: black

FleetSim

An event-based electric vehicle fleet charging simulation to create virtual power plants in smart sustainable markets.

Requirements

  • python 3.6 or higher
  • GNU make

Installation

This project is intended to run on Mac or Linux. On Windows it should also work via the Linux Subsystem.

Clone the Repository

> git clone https://github.com/indyfree/evsim

Install required Packages

Installs virtual environment and dependencies with pip:

> make requirements

Run Jupyter Notebooks

> make jupyter

Preprocess the Data

Note: Not all the data are freely accessible. Contact me if you need access.

> evsim build --help
Usage: evsim build [OPTIONS] COMMAND [ARGS]...

  (Re)build data sources.

Options:
  --help  Show this message and exit.

Commands:
  all               (Re)build all data sources.
  balancing-prices  (Re)build balancing price data.
  intraday-prices   (Re)build intraday price data.
  mobility-demand   (Re)build mobility demand data.
  trips             (Re)build car2go trip data.

Run the simulation

Available parameters:

> evsim simulate --help
Usage: evsim simulate [OPTIONS]

  Start the EV Simulation.

Options:
  -c, --ev-capacity FLOAT           Battery capacity of EV in kWh.  [default:
                                    17.6]
  -i, --industry-tariff INTEGER     Flat industry tariff, which the fleet can
                                    charge regularly.  [default: 150]
  -s, --charging-speed FLOAT        Charging power in kW.  [default: 3.6]
  --charging-strategy               [regular|balancing|intraday|integrated]
                                    Charging strategy  [default: regular]
  -a, --accuracy <INTEGER INTEGER>  Prediction accuracy.  [default: 100, 100]
  -r, --risk <FLOAT FLOAT>...       Bidding risk [default: 0.0, 0.0]

E.g.:

> evsim --name=intraday --debug simulate --charging-strategy=intraday
--- Simulation Settings: ---
Debug is on.
Writing Logs to file is on.
Maximal EV range is set to 160km.
EV battery capacity is set to 17.6kWh.
Charging speed is set to 3.6kW.
Industry electricity tariff is set to 250EUR/MWh.
Refusing rentals is set to off.
--- Starting Simulation: ---
INFO    ---- STARTING SIMULATION: intraday -----
INFO    [2017-02-23 00:00:00] - ---------- TIMESLOT 2017-02-23 00:00:00 ----------
INFO    [2017-02-23 00:00:00] - S-GO2459(78.00/100) Added to fleet!
INFO    [2017-02-23 00:00:00] - S-GO2450(66.00/100) Added to fleet!
INFO    [2017-02-23 00:00:00] - S-GO2293(99.00/100) Added to fleet!
INFO    [2017-02-23 00:00:00] - Controller(intraday) Bought 18.00 kW for -37.90 EUR/MWh for 15-min timeslot 2017-02-23 00:30:00
INFO    [2017-02-23 00:00:00] - Controller(intraday) Charge 1.30 EUR cheaper than with industry tariff. Current balance: 1.30 EUR.
INFO    [2017-02-23 00:00:00] - Controller(intraday) Consumption plan for 2017-02-23 00:00:00: 0.00kW, required EVs: 0.
INFO    [2017-02-23 00:00:00] - Controller(intraday) Charging 0/0 EVs from consumption plan.
INFO    [2017-02-23 00:00:00] - Controller(intraday) Charging 0/0 EVs regulary.
INFO    [2017-02-23 00:00:00] - S-GO2459(78.00/100) Starting trip 0.
INFO    [2017-02-23 00:00:00] - S-GO2450(66.00/100) Starting trip 1.
INFO    [2017-02-23 00:00:00] - S-GO2293(99.00/100) Starting trip 2.
...
INFO    [2017-02-23 07:45:00] - ---------- TIMESLOT 2017-02-23 07:45:00 ----------
INFO    [2017-02-23 07:45:00] - S-GO2555(100.00/100) Added to fleet!
INFO    [2017-02-23 07:45:00] - Controller(intraday) Bought 54.00 kW for 36.00 EUR/MWh for 15-min timeslot 2017-02-23 08:15:00
INFO    [2017-02-23 07:45:00] - Controller(intraday) Charge 2.89 EUR cheaper than with industry tariff. Current balance: 137.73 EUR.
INFO    [2017-02-23 07:45:00] - Controller(intraday) Consumption plan for 2017-02-23 07:45:00: 61.20kW, required EVs: 17.
INFO    [2017-02-23 07:45:00] - Controller(intraday) Charging 18/20 EVs from consumption plan.
INFO    [2017-02-23 07:45:00] - Controller(intraday) Charging 2/20 EVs regulary.
INFO    [2017-02-23 07:45:00] - S-GO2333(95.00/100) Starting trip 382.
INFO    [2017-02-23 07:45:00] - S-GO2651(88.93/100) Starting trip 383.
INFO    [2017-02-23 07:45:00] - BALANCING(68.4kW/61.2kW) Removed EV S-GO2651 from VPP.
INFO    [2017-02-23 07:45:00] - BALANCING(64.8kW/61.2kW) Removed EV S-GO2463 from VPP.
INFO    [2017-02-23 07:45:00] - S-GO2651(88.93/100) Charging interrupted! Customer wants to rent car
INFO    [2017-02-23 07:45:00] - S-GO2463(95.36/100) Charging interrupted! Customer wants to rent car

Autocompletion

Activate autocompletion by sourcing the according completion file:

> source ./completion_zsh.sh
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].