Skip to content

Commit 15df1d4

Browse files
committed
Merge branch 'release/v0.4.0'
2 parents f486911 + f6c9557 commit 15df1d4

205 files changed

Lines changed: 85998 additions & 248778 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Documentation
2+
3+
on: [push]
4+
5+
jobs:
6+
build-documentation:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v2
13+
- name: Fetch all repository branches and tags
14+
run: |
15+
git fetch --prune --unshallow
16+
- name: Set up Python
17+
uses: s-weigand/setup-conda@v1
18+
with:
19+
python-version: 3.7
20+
- name: Install dependencies
21+
run: |
22+
conda install sphinx
23+
pip install -r docs/requirements.txt
24+
- name: Build documentation HTML with Sphinx
25+
run: |
26+
sphinx-multiversion docs docs/_build/html
27+
cp docs/assets/gh-pages_index.html docs/_build/html/index.html
28+
find docs/_build/html -type f -name "*.html" -exec sed -i 's/<li><p>\(.*\)<\/p>\(.*\)/<li>\1\2/g' {} +
29+
- name: Deploy documentation HTML to Github Pages
30+
uses: peaceiris/actions-gh-pages@v3
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: docs/_build/html/
34+
keep_files: false

.github/workflows/pythontests.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@ name: Python tests
33
on: [push]
44

55
jobs:
6-
build:
6+
run-tests:
77

88
runs-on: ${{ matrix.os }}
99
strategy:
1010
max-parallel: 8
1111
matrix:
12-
os: [windows-latest, macos-latest, ubuntu-latest]
12+
os: [
13+
windows-latest,
14+
# macos-latest,
15+
ubuntu-latest
16+
]
1317
python-version: [3.7]
1418

1519
steps:
@@ -22,20 +26,18 @@ jobs:
2226
git submodule sync --recursive
2327
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
2428
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v1
29+
uses: s-weigand/setup-conda@v1
2630
with:
2731
python-version: ${{ matrix.python-version }}
2832
- name: Install dependencies
2933
run: |
30-
python -m pip install --upgrade pip
31-
pip install -e .
32-
pip install -e cobmo
34+
pip install -v -e .
3335
- name: Lint with flake8
3436
run: |
3537
pip install flake8
36-
# stop the build if there are Python syntax errors or undefined names
38+
# Stop the build if there are Python syntax errors or undefined names.
3739
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
38-
# exit-zero treats all errors as warnings. Line lengths should not exceed 120 characters.
40+
# Exit-zero treats all errors as warnings. Line lengths should not exceed 120 characters.
3941
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=120 --statistics
4042
- name: Test with pytest
4143
run: |

.gitignore

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
11

2-
\.idea/
2+
.idea
33

4-
\.vscode/
4+
.vscode
55

6-
*.egg-info/
6+
.spyproject
77

8-
*/__pycache__/
8+
*.egg-info
9+
10+
*__pycache__
911

1012
*.pyc
1113

12-
\.pytest_cache/
14+
.pytest_cache
15+
16+
cache/
1317

1418
*.sqlite
1519

20+
*.sqlite-journal
21+
1622
*.DS_Store
1723

1824
docs/_build/
1925

2026
results/*
2127

2228
!results/README\.md
29+
30+
config.yml

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 TUMCREATE <https://tum-create.edu.sg/>
3+
Copyright (c) 2018-2020 TUMCREATE <https://tum-create.edu.sg/>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
The Flexible Distribution Grid Demonstrator (FLEDGE) is a software tool for optimal operation problems of electric and thermal distribution grids along with distributed energy resources (DERs), such as flexible building loads, electric vehicle (EV) chargers, distributed generators (DGs) and energy storage systems (ESS). To this end, it implements 1) electric grid models, 2) thermal grid models, 3) DER models, and 4) optimal operation problems.
66

7+
## Work in progress
8+
9+
Please note that the repository is under active development and the interface may change without notice. Create an [issue](https://github.com/TUMCREATE-ESTL/fledge/issues) if you have ideas / comments / criticism that may help to make the tool more useful.
10+
711
## Features
812

913
- Electric grid models:
@@ -20,37 +24,37 @@ The Flexible Distribution Grid Demonstrator (FLEDGE) is a software tool for opti
2024
- Time series models for EV charging.
2125
- Linear models for flexible building loads.
2226
- Optimal operation problems:
23-
- Obtain numerical optimization problem for combined optimal operation for electric / thermal grids with DERs via [Pyomo](https://github.com/Pyomo/pyomo).
27+
- Obtain numerical optimization problem for combined optimal operation for electric / thermal grids with DERs.
2428
- Obtain electric / thermal optimal power flow solution.
2529
- Obtain distribution locational marginal prices (DLMPs) for the electric / thermal grids.
2630

27-
## Work in Progress
28-
29-
Please note that the repository is under active development and the interface may change without notice. Create an [issue](https://github.com/TUMCREATE-ESTL/fledge/issues) if you have ideas / comments / criticism that may help to make the tool more useful.
30-
3131
## Documentation
3232

33-
The preliminary documentation is located at [fledge.readthedocs.io](https://fledge.readthedocs.io/).
33+
The preliminary documentation is located at [tumcreate-estl.github.io/fledge](https://tumcreate-estl.github.io/fledge).
3434

3535
## Installation
3636

3737
1. Check requirements:
3838
- Python 3.7
3939
- [Gurobi Optimizer](http://www.gurobi.com/)
40-
2. Clone or download repository.
40+
2. Clone or download repository. Ensure that the `cobmo` submodule directory is loaded as well.
4141
3. In your Python environment, run:
42-
1. `pip install -e path_to_repository`
43-
2. `pip install -e path_to_repository/cobmo`
42+
1. `pip install -v -e path_to_repository`
4443

45-
Please also read [docs/intro.md](./docs/intro.md).
44+
Please also read [docs/getting_started.md](./docs/getting_started.md).
4645

4746
## Contributing
4847

4948
If you are keen to contribute to this project, please see [docs/contributing.md](./docs/contributing.md).
5049

50+
## Publications
51+
52+
Information on citing FLEDGE and a list of related publications is available at [docs/publications.md](docs/publications.md).
53+
5154
## Acknowledgements
5255

53-
- Sebastian Troitzsch implemented the initial version of FLEDGE and maintains this repository.
54-
- Sarmad Hanif and Kai Zhang developed the underlying electric grid modelling and approximation methodologies.
55-
- Mischa Grussmann developed the thermal grid modelling and aproximation methodologies.
5656
- This work was financially supported by the Singapore National Research Foundation under its Campus for Research Excellence And Technological Enterprise (CREATE) programme.
57+
- Sebastian Troitzsch implemented the initial version of FLEDGE and maintains this repository.
58+
- Sarmad Hanif and Kai Zhang developed the underlying electric grid modelling, fixed-point power flow solution and electric grid approximation methodologies.
59+
- Arif Ahmed implemented the implicit Z-bus power flow solution method.
60+
- Mischa Grussmann developed the thermal grid modelling and approximation methodologies.

cobmo

Submodule cobmo updated from 30aa9e4 to cdcab02
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
building_name,weather_type,plant_cooling_type,plant_heating_type,storage_type
2+
tanjongpagar_building_1,singapore_iwec,cea_plant_cooling,cea_plant_heating,
3+
tanjongpagar_building_2,singapore_iwec,cea_plant_cooling,cea_plant_heating,
4+
tanjongpagar_building_3,singapore_iwec,cea_plant_cooling,cea_plant_heating,
5+
tanjongpagar_building_4,singapore_iwec,cea_plant_cooling,cea_plant_heating,
6+
tanjongpagar_building_5,singapore_iwec,cea_plant_cooling,cea_plant_heating,
7+
tanjongpagar_building_6,singapore_iwec,cea_plant_cooling,cea_plant_heating,
8+
tanjongpagar_building_7,singapore_iwec,cea_plant_cooling,cea_plant_heating,
9+
tanjongpagar_building_8,singapore_iwec,cea_plant_cooling,cea_plant_heating,
10+
tanjongpagar_building_9,singapore_iwec,cea_plant_cooling,cea_plant_heating,
11+
tanjongpagar_building_10,singapore_iwec,cea_plant_cooling,cea_plant_heating,
12+
tanjongpagar_building_11,singapore_iwec,cea_plant_cooling,cea_plant_heating,
13+
tanjongpagar_building_12,singapore_iwec,cea_plant_cooling,cea_plant_heating,
14+
tanjongpagar_building_13,singapore_iwec,cea_plant_cooling,cea_plant_heating,
15+
tanjongpagar_building_14,singapore_iwec,cea_plant_cooling,cea_plant_heating,
16+
tanjongpagar_building_15,singapore_iwec,cea_plant_cooling,cea_plant_heating,
17+
tanjongpagar_building_16,singapore_iwec,cea_plant_cooling,cea_plant_heating,
18+
tanjongpagar_building_17,singapore_iwec,cea_plant_cooling,cea_plant_heating,
19+
tanjongpagar_building_18,singapore_iwec,cea_plant_cooling,cea_plant_heating,
20+
tanjongpagar_building_19,singapore_iwec,cea_plant_cooling,cea_plant_heating,
21+
tanjongpagar_building_20,singapore_iwec,cea_plant_cooling,cea_plant_heating,
22+
tanjongpagar_building_21,singapore_iwec,cea_plant_cooling,cea_plant_heating,
23+
tanjongpagar_building_22,singapore_iwec,cea_plant_cooling,cea_plant_heating,
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
scenario_name,building_name,parameter_set,linearization_type,initial_state_type,price_type,timestep_start,timestep_end,timestep_interval
2+
tanjongpagar_building_1,tanjongpagar_building_1,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
3+
tanjongpagar_building_2,tanjongpagar_building_2,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
4+
tanjongpagar_building_3,tanjongpagar_building_3,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
5+
tanjongpagar_building_4,tanjongpagar_building_4,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
6+
tanjongpagar_building_5,tanjongpagar_building_5,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
7+
tanjongpagar_building_6,tanjongpagar_building_6,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
8+
tanjongpagar_building_7,tanjongpagar_building_7,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
9+
tanjongpagar_building_8,tanjongpagar_building_8,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
10+
tanjongpagar_building_9,tanjongpagar_building_9,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
11+
tanjongpagar_building_10,tanjongpagar_building_10,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
12+
tanjongpagar_building_11,tanjongpagar_building_11,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
13+
tanjongpagar_building_12,tanjongpagar_building_12,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
14+
tanjongpagar_building_13,tanjongpagar_building_13,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
15+
tanjongpagar_building_14,tanjongpagar_building_14,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
16+
tanjongpagar_building_15,tanjongpagar_building_15,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
17+
tanjongpagar_building_16,tanjongpagar_building_16,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
18+
tanjongpagar_building_17,tanjongpagar_building_17,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
19+
tanjongpagar_building_18,tanjongpagar_building_18,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
20+
tanjongpagar_building_19,tanjongpagar_building_19,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
21+
tanjongpagar_building_20,tanjongpagar_building_20,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
22+
tanjongpagar_building_21,tanjongpagar_building_21,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
23+
tanjongpagar_building_22,tanjongpagar_building_22,,create_linearization,cea_initial_state,,2017-01-02T00:00:00,2017-01-03T00:00:00,00:30:00
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
surface_type,heat_capacity,heat_transfer_coefficient_conduction_surface,absorptivity_surface,emissivity_surface,window_type,window_wall_ratio,sky_view_factor
2+
tanjongpagar_wall,0.0,786.269,0.6,0.95,tanjongpagar_window,0.29,0.5
3+
tanjongpagar_roof,0.0,1.336,0.6,0.94,tanjongpagar_window,0.0,1.0

0 commit comments

Comments
 (0)