GithubHelp home page GithubHelp logo

midren / mpc_for_battery_operation Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 2.0 40.54 MB

Model Predictive Control for optimal battery operation

Modelica 0.16% Jupyter Notebook 99.69% Dockerfile 0.01% Python 0.14% Makefile 0.01%
battery-model charging modelica mpc optimal-control peak-shaving

mpc_for_battery_operation's Introduction

Model Predictive Control (MPC) for battery operation

This repository contains code for running Li-Ion battery simulation with ageing effects, and its control for optimal charging and load peak shaving. Battery model is implemented in Modelica, thus it achieves high perfomance. For easier prototyping, battery model can be exported into Functional Mockup Unit (FMU) and used inside any Functional Mockup Inteface (FMI)-compliant software. In our case, it is used in Python for battery operation using MPC via PyFMI.

Project structure

  • ModelicaSrc/BatteryWithFullCycle.mo - contains implementation of Thevenin-based battery model with ageing effects (paper)
  • python_libs/mpc_optimization/ - contains implementation of Model Predictive Control, where model is used as FMU (UML architecture)
  • python_libs/battery_optmizations/ - contains code for optimal battery charging and load peak shaving (WIP)
  • notebooks/ - jupyter notebooks with experiments

Usage

All the work is done under the docker (JModelica is supported only under Linux), thus the simplest way is just to use it. Dockerfile contains necessary environment for running the code, and Dockerfile-dev contains the environment with my neovim/zsh configuration.
Makefile has commands for build and run the docker:

make docker-build # or make docker-build-dev
make jupyter # or make vim 

Citing

If you use this repo, please cite:

@article{milishchuk_bogodorova_2022, 
    title={Thevenin-based battery model with ageing effects in Modelica}, 
    DOI={10.1109/melecon53508.2022.9842961}, 
    journal={2022 IEEE 21st Mediterranean Electrotechnical Conference (MELECON)}, 
    author={Milishchuk, Roman and Bogodorova, Tetiana}, 
    year={2022}
} 

mpc_for_battery_operation's People

Contributors

elatiel avatar midren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

elatiel rea40157

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.