Coder Social home page Coder Social logo

greencharge / gcsimulator Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 5.2 MB

Home Page: https://www.greencharge2020.eu/

License: GNU Lesser General Public License v2.1

Dockerfile 0.70% JavaScript 3.23% Python 88.22% HTML 1.27% Lua 4.44% CSS 2.11% Shell 0.04%
simulation greencharge smart-energy e-mobility

gcsimulator's Introduction

GreenCharge Simulator

The GreenCharge simulator reproduces in a virtual environment the events that occur in a real energy smart neighborhood (ESN) using a collection of real misured data [1]. It is based on the original CoSSMic simulator [2], and allows to extend the evaluation capability in real pilots, which are limited in the heterogeneity and number of devices and in the duration of operating trials.
The simulator is based on the discrete-event simulation (DES) model where the system appears as a discrete sequence of events in time.

The Container based deployment configuration allows for an easy deploy of the simulation platform on the user’s workstation, independently from the Operating System. The software architecture is shown in Figure Contaner based deployment

Using both a virtual or a real network many containerized components interoperate through a loosely coupled integration. The blue box represents the simulation engine and its Graphical User Interface (GUI). The two components use a volume to access simulation input and output data such as configuration of scenarios, time-series and results. The XMPP server provides a peer-to-peer communication overlay for multi-agents distributed implementation. A volume is used to save user-credentials, as the simulator can be used by multiple users who can run their simulations in parallel, in one or in multiple containers. An optimization model can be integrated as Energy Management Systems (EMS) that runs in its own container and uses the Simulator interface to receive simulation events and to return the optimal energy schedule. In particular, the GreenCharge project will evaluate two different EMS innovative technological solutions, developed by the University of Oslo and by the Eurecat partner. Here we investigate an alternative solution that is used also to demonstrate how the simulation platform works.

[1] R. Aversa, D. Branco, B. Di Martino, and S. Venticinque. Greenchargesimulation tool.Advances in Intelligent Systems and Computing, 1150AISC:1343–1351, 2020.

[2] A. Amato, R. Aversa, B. Di Martino, M. Scialdone, and S. Venticinque. Asimulation approach for the optimization of solar powered smart migro-grids.Advances in Intelligent Systems and Computing, 611:844–853, 2018.

Documentation

Build

Build Simulator image

From main directory:

cd Dockers/gcsim
docker build . --tag gcsim

Build Scheduler image

From main directory:

cd Dockers/gcscheduler
docker build . --tag gcscheduler

Instantiate and run prosody, simulator and scheduler containers

cd docker-compose up

The prosody configuration and the Simulation directory are mapped to the host directories Currently the simulator container waits for a bash connection

Run the Simulator

Start the scheduler

docker exec -it docker_gcscheduler_1 bash
./scheduler start

Start the simulator

docker exec -it docker_gcsimulator_1 bash
./starter.sh start

Generate the report

docker exec -it docker_gcsimulator_1 bash
cd ../Simulations/[simulation_dir]/[simulation_date]_[simulation_id]
python3 postprocess

gcsimulator's People

Contributors

25sal avatar

Watchers

 avatar  avatar  avatar

Forkers

iaiux

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.