deflex

Simple heat and power model of Germany

https://github.com/reegis/deflex

Science Score: 33.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 8 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    1 of 6 committers (16.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.1%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Simple heat and power model of Germany

Basic Info
  • Host: GitHub
  • Owner: reegis
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 52.3 MB
Statistics
  • Stars: 12
  • Watchers: 4
  • Forks: 8
  • Open Issues: 9
  • Releases: 0
Created over 8 years ago · Last pushed about 4 years ago
Metadata Files
Readme Changelog Contributing License

README.rst

.. start-badges

| |workflow_pytests| |workflow_checks| |coveralls| |docs| |packaging|
| |lgt_general| |lgt_alerts| |codacy| |requires|

\

| |version| |wheel| |supported-versions| |supported-implementations|
| |commits-since| |licence| |code_Style| |zenodo|


.. |docs| image:: https://readthedocs.org/projects/deflex/badge/?style=flat
    :target: https://readthedocs.org/projects/deflex
    :alt: Documentation Status

.. |workflow_pytests| image:: https://github.com/reegis/deflex/workflows/tox%20pytests/badge.svg?branch=master
    :target: https://github.com/reegis/deflex/actions?query=workflow%3A%22tox+pytests%22

.. |workflow_checks| image:: https://github.com/reegis/deflex/workflows/tox%20checks/badge.svg?branch=master
    :target: https://github.com/reegis/deflex/actions?query=workflow%3A%22tox+checks%22

.. |packaging| image:: https://github.com/reegis/deflex/workflows/packaging/badge.svg?branch=master
    :target: https://github.com/reegis/deflex/actions?query=workflow%3Apackaging

.. |requires| image:: https://requires.io/github/reegis/deflex/requirements.svg?branch=master
    :alt: Requirements Status
    :target: https://requires.io/github/reegis/deflex/requirements/?branch=master

.. |coveralls| image:: https://coveralls.io/repos/github/reegis/deflex/badge.svg?branch=master
    :alt: Coverage Status
    :target: https://coveralls.io/github/reegis/deflex?branch=master

.. |version| image:: https://img.shields.io/pypi/v/deflex.svg
    :alt: PyPI Package latest release
    :target: https://pypi.org/project/deflex

.. |wheel| image:: https://img.shields.io/pypi/wheel/deflex.svg
    :alt: PyPI Wheel
    :target: https://pypi.org/project/deflex

.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/deflex.svg
    :alt: Supported versions
    :target: https://pypi.org/project/deflex

.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/deflex.svg
    :alt: Supported implementations
    :target: https://pypi.org/project/deflex

.. |commits-since| image:: https://img.shields.io/github/commits-since/reegis/deflex/v0.3.0.svg
    :alt: Commits since latest release
    :target: https://github.com/reegis/deflex/compare/v0.3.0...master

.. |lgt_general| image:: https://img.shields.io/lgtm/grade/python/g/reegis/deflex.svg?logo=lgtm&logoWidth=18
    :target: https://lgtm.com/projects/g/reegis/deflex/context:python

.. |lgt_alerts| image:: https://img.shields.io/lgtm/alerts/g/reegis/deflex.svg?logo=lgtm&logoWidth=18
    :target: https://lgtm.com/projects/g/reegis/deflex/alerts/

.. |code_style| image:: https://img.shields.io/badge/automatic%20code%20style-black-blueviolet
    :target: https://black.readthedocs.io/en/stable/

.. |codacy| image:: https://api.codacy.com/project/badge/Grade/b91ed03ffa8e407ab3e69a10c5115efa
   :target: https://app.codacy.com/gh/reegis/deflex?utm_source=github.com&utm_medium=referral&utm_content=reegis/deflex&utm_campaign=Badge_Grade

.. |licence| image:: https://img.shields.io/badge/licence-MIT-blue
    :target: https://spdx.org/licenses/MIT.html

.. |zenodo| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.3572594.svg
   :target: https://doi.org/10.5281/zenodo.3572594


------------------------------------------------

.. end-badges

\

.. image:: https://raw.githubusercontent.com/reegis/deflex/master/docs/images/logo_deflex_big.svg
    :target: https://github.com/reegis/deflex
    :width: 600pt

=================================================================================
deflex - flexible multi-regional energy system model for heat, power and mobility
=================================================================================

++++++ multi sectoral energy system of Germany/Europe ++++++ dispatch
optimisation ++++++ highly configurable and adaptable ++++++ multiple analyses
functions +++++

The following README gives you a brief overview about deflex. Read the full
`documentation `_ for all
information.

.. contents::
    :depth: 1
    :local:
    :backlinks: top

Installation
------------

To run `deflex` you have to install the Python package and a solver:

* deflex is available on `PyPi `_ and can be
  installed using ``pip install deflex``.
* an LP-solver is needed such as CBC (default), GLPK, Gurobi*, Cplex*
* for some extra functions additional packages and are needed

\* Proprietary solver


Examples
--------

1. Run ``pip install deflex[example]`` to get all dependencies.
2. Create a local directory (e.g. /home/user/deflex_examples).
3. Browse the `examples `_ for deflex v0.4.x or
   download all examples as `zip file `_ and copy/extract them to your local directory.
4. Read the comments of each example, execute it and modify it to your needs.
   Do not forget to set a local path in the examples if needed.
5. In parallel you should read the ``usage guide`` of the documentation to get
   the full picture.

The example scripts will download the example scenarios to the $HOME/deflex
folder. It is also possible to browse the
`example scenarios `_.

Improve deflex
--------------

We are warmly welcoming all who want to contribute to the deflex library. This
includes the following actions:

* Write bug reports or comments
* Improve the documentation (including typos, grammar)
* Add features improve the code (open an issue first)


Citing deflex
-------------

Go to the `Zenodo page of deflex `_ to find the DOI of your version. To cite all deflex versions use:

.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.3572594.svg
   :target: https://doi.org/10.5281/zenodo.3572594

Gallery
-------

The following figures will give you a brief impression about deflex.

.. image:: https://raw.githubusercontent.com/reegis/deflex/master/docs/images/model_regions.svg

**Figure 1:** Use one of the include regions sets or create your own one. You
can also include other European countries.

-------------------------------------------------------------------------------

.. image:: https://raw.githubusercontent.com/reegis/deflex/master/docs/images/spreadsheet_examples.png
  :width: 950pt

**Figure 2:** The input data can be organised in spreadsheets or csv files.

-------------------------------------------------------------------------------

.. image:: https://raw.githubusercontent.com/reegis/deflex/master/docs/images/mcp.svg

**Figure 3:** The resulting system costs of deflex have been compared with the
day-ahead prices from the Entso-e downloaded from `Open Power System Data
`_. The plot shows three different periods
of the year.

-------------------------------------------------------------------------------

.. image:: https://raw.githubusercontent.com/reegis/deflex/master/docs/images/emissions.svg

**Figure 4:** It is also possible to get a time series of the average emissions. Furthermore,
it shows the emissions of the most expensive power plant which would be
replaced by an additional feed-in.

-------------------------------------------------------------------------------

.. image:: https://raw.githubusercontent.com/reegis/deflex/master/docs/images/transmission.svg

**Figure 5:** The following plot shows fraction of the time on which the utilisation of the
power lines between the regions is more than 90% of its maximum capacity:

Documentation
-------------

The `full documentation of deflex `_
is available on readthedocs.

Go to the `download page `_
to download different versions and formats (pdf, html, epub) of the
documentation.

License
-------

Copyright (c) 2016-2021 Uwe Krien

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Owner

  • Name: reegis
  • Login: reegis
  • Kind: organization

GitHub Events

Total
Last Year

Committers

Last synced: 11 months ago

All Time
  • Total Commits: 859
  • Total Committers: 6
  • Avg Commits per committer: 143.167
  • Development Distribution Score (DDS): 0.078
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
uvchik u****t@p****u 792
stickler-ci s****t@s****m 41
Pedro Duran 7****a 17
busiing s****p@g****m 7
Uwe Krien 2****3@o****o 1
beierd b****r@u****e 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 9
  • Total pull requests: 27
  • Average time to close issues: N/A
  • Average time to close pull requests: 27 days
  • Total issue authors: 3
  • Total pull request authors: 4
  • Average comments per issue: 0.11
  • Average comments per pull request: 1.85
  • Merged pull requests: 24
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • busiing (4)
  • uvchik (4)
  • jschmidl (1)
Pull Request Authors
  • uvchik (24)
  • pedroduranhermosilla (1)
  • codacy-badger (1)
  • busiing (1)
Top Labels
Issue Labels
enhancement (4) documentation (3) help wanted (1) good first issue (1) bug (1)
Pull Request Labels
enhancement (4) bug (1)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 40 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 2
  • Total versions: 7
  • Total maintainers: 1
pypi.org: deflex

deflex - flexible multi-regional energy system model for heat, power and mobility

  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 2
  • Downloads: 40 Last month
Rankings
Dependent packages count: 7.3%
Dependent repos count: 11.8%
Forks count: 12.6%
Average: 15.6%
Stargazers count: 16.6%
Downloads: 29.7%
Maintainers (1)
Last synced: 10 months ago

Dependencies

ci/requirements.txt pypi
  • pip >=19.1.1
  • setuptools >=18.0.1
  • six >=1.14.0
  • virtualenv >=16.6.0
docs/requirements.txt pypi
  • deflex *
  • oemof.network *
  • sphinx >=1.3
  • sphinx-rtd-theme *
setup.py pypi
  • dill *
  • networkx *
  • numpy *
  • oemof.network *
  • oemof.solph *
  • openpyxl *
  • pandas *
  • requests *