iesopt 2.6.2__tar.gz → 2.6.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. {iesopt-2.6.2 → iesopt-2.6.4}/.github/actions/set-versions/action.yml +1 -1
  2. {iesopt-2.6.2 → iesopt-2.6.4}/.gitignore +3 -0
  3. {iesopt-2.6.2 → iesopt-2.6.4}/.pre-commit-config.yaml +1 -1
  4. iesopt-2.6.4/.python-version +1 -0
  5. {iesopt-2.6.2 → iesopt-2.6.4}/PKG-INFO +14 -2
  6. {iesopt-2.6.2 → iesopt-2.6.4}/README.md +13 -1
  7. iesopt-2.6.4/docs/_static/favicon.ico +0 -0
  8. {iesopt-2.6.2 → iesopt-2.6.4}/docs/conf.py +2 -0
  9. {iesopt-2.6.2 → iesopt-2.6.4}/docs/index.md +2 -0
  10. iesopt-2.6.4/docs/notebooks/example_52.ipynb +418 -0
  11. iesopt-2.6.4/docs/notebooks/example_53.ipynb +494 -0
  12. iesopt-2.6.4/docs/notebooks/example_54.ipynb +418 -0
  13. iesopt-2.6.4/docs/notebooks/example_55.ipynb +214 -0
  14. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/tutorials/templates_1.md +136 -125
  15. iesopt-2.6.4/docs/tocs/examples.md +11 -0
  16. {iesopt-2.6.2 → iesopt-2.6.4}/pyproject.toml +1 -1
  17. {iesopt-2.6.2 → iesopt-2.6.4}/src/iesopt/__init__.py +29 -1
  18. {iesopt-2.6.2 → iesopt-2.6.4}/src/iesopt/config.py +4 -4
  19. {iesopt-2.6.2 → iesopt-2.6.4}/src/iesopt/julia/general.py +3 -2
  20. {iesopt-2.6.2 → iesopt-2.6.4}/src/iesopt/julia/setup.py +26 -11
  21. {iesopt-2.6.2 → iesopt-2.6.4}/src/iesopt/results.py +1 -1
  22. {iesopt-2.6.2 → iesopt-2.6.4}/tests/test_examples.py +4 -4
  23. {iesopt-2.6.2 → iesopt-2.6.4}/uv.lock +2 -1
  24. iesopt-2.6.2/.python-version +0 -1
  25. {iesopt-2.6.2 → iesopt-2.6.4}/.editorconfig +0 -0
  26. {iesopt-2.6.2 → iesopt-2.6.4}/.github/workflows/documentation.yml +0 -0
  27. {iesopt-2.6.2 → iesopt-2.6.4}/.github/workflows/pypi_publish.yml +0 -0
  28. {iesopt-2.6.2 → iesopt-2.6.4}/.github/workflows/pytest.yml +0 -0
  29. {iesopt-2.6.2 → iesopt-2.6.4}/CHANGELOG.md +0 -0
  30. {iesopt-2.6.2 → iesopt-2.6.4}/LICENSE +0 -0
  31. {iesopt-2.6.2 → iesopt-2.6.4}/docs/Makefile +0 -0
  32. {iesopt-2.6.2 → iesopt-2.6.4}/docs/_extensions/julia_domain.py +0 -0
  33. {iesopt-2.6.2 → iesopt-2.6.4}/docs/_static/.gitkeep +0 -0
  34. {iesopt-2.6.2 → iesopt-2.6.4}/docs/_static/custom.css +0 -0
  35. {iesopt-2.6.2 → iesopt-2.6.4}/docs/dynamic/core.py +0 -0
  36. {iesopt-2.6.2 → iesopt-2.6.4}/docs/dynamic/create.py +0 -0
  37. {iesopt-2.6.2 → iesopt-2.6.4}/docs/dynamic/julia.py +0 -0
  38. {iesopt-2.6.2 → iesopt-2.6.4}/docs/dynamic/out/.gitignore +0 -0
  39. {iesopt-2.6.2 → iesopt-2.6.4}/docs/make.bat +0 -0
  40. {iesopt-2.6.2 → iesopt-2.6.4}/docs/notebooks/.gitignore +0 -0
  41. {iesopt-2.6.2 → iesopt-2.6.4}/docs/notebooks/custom_results_1.ipynb +0 -0
  42. {iesopt-2.6.2 → iesopt-2.6.4}/docs/notebooks/custom_results_2.ipynb +0 -0
  43. {iesopt-2.6.2 → iesopt-2.6.4}/docs/notebooks/first_model.ipynb +0 -0
  44. {iesopt-2.6.2 → iesopt-2.6.4}/docs/notebooks/pyproject.toml +0 -0
  45. {iesopt-2.6.2 → iesopt-2.6.4}/docs/notebooks/ruff.toml +0 -0
  46. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/dev/core.md +0 -0
  47. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/dev/general.md +0 -0
  48. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/dev/updating.md +0 -0
  49. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/manual/julia/.gitignore +0 -0
  50. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/manual/julia/index.md_template +0 -0
  51. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/manual/python/configuration.md +0 -0
  52. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/manual/python/index.md +0 -0
  53. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/manual/python/jump.md +0 -0
  54. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/manual/python/model.md +0 -0
  55. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/manual/python/results.md +0 -0
  56. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/manual/python/util.md +0 -0
  57. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/manual/yaml/core/.gitignore +0 -0
  58. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/manual/yaml/core_components.md +0 -0
  59. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/manual/yaml/index.md +0 -0
  60. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/manual/yaml/top_level.md +0 -0
  61. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/references/projects.md +0 -0
  62. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/references/publications.md +0 -0
  63. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/tutorials/.gitkeep +0 -0
  64. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/tutorials/addons.md +0 -0
  65. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/tutorials/templates_2.md +0 -0
  66. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/user_guides/general/best_practice.md +0 -0
  67. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/user_guides/general/common_errors.md +0 -0
  68. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/user_guides/general/linking_components.md +0 -0
  69. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/user_guides/general/solvers.md +0 -0
  70. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/user_guides/index.md +0 -0
  71. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/user_guides/qna/dynamic_marginal_costs.md +0 -0
  72. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/user_guides/qna/passive_charging.md +0 -0
  73. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/user_guides/qna/profiles_sign.md +0 -0
  74. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/user_guides/qna/snapshot_duration.md +0 -0
  75. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/user_guides/toc_general.md +0 -0
  76. {iesopt-2.6.2 → iesopt-2.6.4}/docs/pages/user_guides/toc_qna.md +0 -0
  77. {iesopt-2.6.2 → iesopt-2.6.4}/docs/tocs/tutorials_extracting_results.md +0 -0
  78. {iesopt-2.6.2 → iesopt-2.6.4}/docs/tocs/tutorials_templates.md +0 -0
  79. {iesopt-2.6.2 → iesopt-2.6.4}/src/iesopt/iesopt.py +0 -0
  80. {iesopt-2.6.2 → iesopt-2.6.4}/src/iesopt/julia/__init__.py +0 -0
  81. {iesopt-2.6.2 → iesopt-2.6.4}/src/iesopt/julia/util.py +0 -0
  82. {iesopt-2.6.2 → iesopt-2.6.4}/src/iesopt/model.py +0 -0
  83. {iesopt-2.6.2 → iesopt-2.6.4}/src/iesopt/util/__init__.py +0 -0
  84. {iesopt-2.6.2 → iesopt-2.6.4}/src/iesopt/util/logging.py +0 -0
  85. {iesopt-2.6.2 → iesopt-2.6.4}/src/iesopt/util/util.py +0 -0
  86. {iesopt-2.6.2 → iesopt-2.6.4}/tag_release.sh +0 -0
  87. {iesopt-2.6.2 → iesopt-2.6.4}/tests/__init__.py +0 -0
  88. {iesopt-2.6.2 → iesopt-2.6.4}/tests/test_files.py +0 -0
  89. {iesopt-2.6.2 → iesopt-2.6.4}/tests/test_julia_consistency.py +0 -0
  90. {iesopt-2.6.2 → iesopt-2.6.4}/tests/test_python_julia_conversion.py +0 -0
@@ -10,6 +10,6 @@ runs:
10
10
 
11
11
  - name: "set Julia version"
12
12
  shell: bash
13
- run: echo "VERSION_JULIA=1.11.3" >> $GITHUB_ENV
13
+ run: echo "VERSION_JULIA=1.11.4" >> $GITHUB_ENV
14
14
 
15
15
 
@@ -174,3 +174,6 @@ cython_debug/
174
174
  # Temp. directory
175
175
  tmp_test/
176
176
  **/tmp_test/
177
+
178
+ # IESopt specific directory
179
+ .iesopt/
@@ -3,7 +3,7 @@ default_language_version:
3
3
 
4
4
  repos:
5
5
  - repo: https://github.com/astral-sh/ruff-pre-commit
6
- rev: v0.9.4
6
+ rev: v0.9.10
7
7
  hooks:
8
8
  - id: ruff
9
9
  types_or: [python, pyi, jupyter] # make sure to include jupyter files
@@ -0,0 +1 @@
1
+ 3.12
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iesopt
3
- Version: 2.6.2
3
+ Version: 2.6.4
4
4
  Summary: IESopt -- an Integrated Energy System Optimization framework.
5
5
  Project-URL: Homepage, https://github.com/ait-energy/iesopt
6
6
  Project-URL: Documentation, https://ait-energy.github.io/iesopt
@@ -48,4 +48,16 @@ while still being user-friendly. This is enabled by reducing energy system asset
48
48
  supported by specialized implementation, and can be combined into complex systems without the need of a detailed
49
49
  understanding of mathematical modeling or proficiency in any coding-language.
50
50
 
51
- > Note: We are currently merging the documentation which was split into three locations and is also done (for a large part) in Julia, into this repository. This is a work in progress and will be updated over the next weeks.
51
+ > If you are looking for the framework's core model, written in Julia, head over to the [IESopt.jl repository](https://github.com/ait-energy/IESopt.jl).
52
+
53
+ ## Getting started
54
+
55
+ Head over to the [documentation](https://ait-energy.github.io/iesopt/) to get started with **IESopt**.
56
+
57
+ ## Contributing
58
+
59
+ PRs accepted. Checkout the _developer documentation section_ in the [documentation](https://ait-energy.github.io/iesopt/).
60
+
61
+ ## License
62
+
63
+ [MIT © AIT Austrian Institute of Technology GmbH.](LICENSE)
@@ -19,4 +19,16 @@ while still being user-friendly. This is enabled by reducing energy system asset
19
19
  supported by specialized implementation, and can be combined into complex systems without the need of a detailed
20
20
  understanding of mathematical modeling or proficiency in any coding-language.
21
21
 
22
- > Note: We are currently merging the documentation which was split into three locations and is also done (for a large part) in Julia, into this repository. This is a work in progress and will be updated over the next weeks.
22
+ > If you are looking for the framework's core model, written in Julia, head over to the [IESopt.jl repository](https://github.com/ait-energy/IESopt.jl).
23
+
24
+ ## Getting started
25
+
26
+ Head over to the [documentation](https://ait-energy.github.io/iesopt/) to get started with **IESopt**.
27
+
28
+ ## Contributing
29
+
30
+ PRs accepted. Checkout the _developer documentation section_ in the [documentation](https://ait-energy.github.io/iesopt/).
31
+
32
+ ## License
33
+
34
+ [MIT © AIT Austrian Institute of Technology GmbH.](LICENSE)
Binary file
@@ -102,6 +102,8 @@ html_context = {
102
102
  "default_mode": "light",
103
103
  }
104
104
 
105
+ html_favicon = "_static/favicon.ico"
106
+
105
107
  # -- MyST & autodoc configuration --------------------------------------------
106
108
 
107
109
  myst_enable_extensions = ["dollarmath", "amsmath", "colon_fence", "fieldlist"]
@@ -19,6 +19,8 @@ notebooks/first_model.ipynb
19
19
  tocs/tutorials_extracting_results.md
20
20
  tocs/tutorials_templates.md
21
21
  pages/tutorials/addons.md
22
+
23
+ tocs/examples.md
22
24
  :::
23
25
 
24
26
  <!--- notebooks/mga_basic.ipynb --->
@@ -0,0 +1,418 @@
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "markdown",
5
+ "metadata": {},
6
+ "source": [
7
+ "# A simple EV (ex. 52)\n",
8
+ "\n",
9
+ "## Overview\n",
10
+ "\n",
11
+ "The relevant section of the top-level YAML looks like this:\n",
12
+ "\n",
13
+ "```yaml\n",
14
+ "components:\n",
15
+ " # ... other stuff ...\n",
16
+ "\n",
17
+ " # NOTE: This could be a `Unit` instead, to allow more complex behaviours.\n",
18
+ " # This assumes a rated power of \"40 kW\" and only allows charging while the EV is actually connected.\n",
19
+ " charger:\n",
20
+ " type: Connection\n",
21
+ " node_from: grid\n",
22
+ " node_to: ev\n",
23
+ " loss: 0.05\n",
24
+ " lb: 0\n",
25
+ " ub: 40.0 * connected@data\n",
26
+ "\n",
27
+ " ev:\n",
28
+ " type: Node\n",
29
+ " carrier: electricity\n",
30
+ " has_state: true\n",
31
+ " state_lb: 0\n",
32
+ " state_ub: 100\n",
33
+ "\n",
34
+ " ev_demand:\n",
35
+ " type: Profile\n",
36
+ " carrier: electricity\n",
37
+ " node_from: ev\n",
38
+ " value: demand@data\n",
39
+ "```\n",
40
+ "\n",
41
+ "This models the EV as a storage that is _sometimes_ connected to the grid - if it is, with a maximum power of 40 kW. The EV has a state of charge that can vary between 0 and 100 kWh. The demand of the EV is given by the `ev_demand` profile and taken out of the storage. Check the config file as well as the data file for more details."
42
+ ]
43
+ },
44
+ {
45
+ "cell_type": "markdown",
46
+ "metadata": {},
47
+ "source": [
48
+ "## Running the example\n",
49
+ "\n",
50
+ "First, import `iesopt`."
51
+ ]
52
+ },
53
+ {
54
+ "cell_type": "code",
55
+ "execution_count": null,
56
+ "metadata": {
57
+ "tags": [
58
+ "remove-stdout",
59
+ "remove-stderr"
60
+ ]
61
+ },
62
+ "outputs": [],
63
+ "source": [
64
+ "import iesopt"
65
+ ]
66
+ },
67
+ {
68
+ "cell_type": "markdown",
69
+ "metadata": {},
70
+ "source": [
71
+ "Then, create a local copy of the IESopt example."
72
+ ]
73
+ },
74
+ {
75
+ "cell_type": "code",
76
+ "execution_count": 5,
77
+ "metadata": {},
78
+ "outputs": [
79
+ {
80
+ "name": "stderr",
81
+ "output_type": "stream",
82
+ "text": [
83
+ "INFO:iesopt:Data folder for examples does not exist; creating it, and copying contents\n",
84
+ "INFO:iesopt:Creating example ('52_simple_ev') at: 'opt/52_simple_ev.iesopt.yaml'\n",
85
+ "INFO:iesopt:Set write permissions for example ('opt/52_simple_ev.iesopt.yaml'), and data folder ('opt/files')\n"
86
+ ]
87
+ }
88
+ ],
89
+ "source": [
90
+ "config = iesopt.make_example(\"52_simple_ev\", \"opt\")"
91
+ ]
92
+ },
93
+ {
94
+ "cell_type": "markdown",
95
+ "metadata": {},
96
+ "source": [
97
+ "Finally, run the model and observe some results."
98
+ ]
99
+ },
100
+ {
101
+ "cell_type": "code",
102
+ "execution_count": 12,
103
+ "metadata": {},
104
+ "outputs": [
105
+ {
106
+ "data": {
107
+ "text/html": [
108
+ "<div>\n",
109
+ "<style scoped>\n",
110
+ " .dataframe tbody tr th:only-of-type {\n",
111
+ " vertical-align: middle;\n",
112
+ " }\n",
113
+ "\n",
114
+ " .dataframe tbody tr th {\n",
115
+ " vertical-align: top;\n",
116
+ " }\n",
117
+ "\n",
118
+ " .dataframe thead th {\n",
119
+ " text-align: right;\n",
120
+ " }\n",
121
+ "</style>\n",
122
+ "<table border=\"1\" class=\"dataframe\">\n",
123
+ " <thead>\n",
124
+ " <tr style=\"text-align: right;\">\n",
125
+ " <th></th>\n",
126
+ " <th>snapshot</th>\n",
127
+ " <th>component</th>\n",
128
+ " <th>fieldtype</th>\n",
129
+ " <th>field</th>\n",
130
+ " <th>value</th>\n",
131
+ " <th>mode</th>\n",
132
+ " </tr>\n",
133
+ " </thead>\n",
134
+ " <tbody>\n",
135
+ " <tr>\n",
136
+ " <th>169</th>\n",
137
+ " <td>t1</td>\n",
138
+ " <td>ev</td>\n",
139
+ " <td>var</td>\n",
140
+ " <td>state</td>\n",
141
+ " <td>55.0</td>\n",
142
+ " <td>primal</td>\n",
143
+ " </tr>\n",
144
+ " <tr>\n",
145
+ " <th>170</th>\n",
146
+ " <td>t2</td>\n",
147
+ " <td>ev</td>\n",
148
+ " <td>var</td>\n",
149
+ " <td>state</td>\n",
150
+ " <td>55.0</td>\n",
151
+ " <td>primal</td>\n",
152
+ " </tr>\n",
153
+ " <tr>\n",
154
+ " <th>171</th>\n",
155
+ " <td>t3</td>\n",
156
+ " <td>ev</td>\n",
157
+ " <td>var</td>\n",
158
+ " <td>state</td>\n",
159
+ " <td>55.0</td>\n",
160
+ " <td>primal</td>\n",
161
+ " </tr>\n",
162
+ " <tr>\n",
163
+ " <th>172</th>\n",
164
+ " <td>t4</td>\n",
165
+ " <td>ev</td>\n",
166
+ " <td>var</td>\n",
167
+ " <td>state</td>\n",
168
+ " <td>55.0</td>\n",
169
+ " <td>primal</td>\n",
170
+ " </tr>\n",
171
+ " <tr>\n",
172
+ " <th>173</th>\n",
173
+ " <td>t5</td>\n",
174
+ " <td>ev</td>\n",
175
+ " <td>var</td>\n",
176
+ " <td>state</td>\n",
177
+ " <td>55.0</td>\n",
178
+ " <td>primal</td>\n",
179
+ " </tr>\n",
180
+ " <tr>\n",
181
+ " <th>174</th>\n",
182
+ " <td>t6</td>\n",
183
+ " <td>ev</td>\n",
184
+ " <td>var</td>\n",
185
+ " <td>state</td>\n",
186
+ " <td>55.0</td>\n",
187
+ " <td>primal</td>\n",
188
+ " </tr>\n",
189
+ " <tr>\n",
190
+ " <th>175</th>\n",
191
+ " <td>t7</td>\n",
192
+ " <td>ev</td>\n",
193
+ " <td>var</td>\n",
194
+ " <td>state</td>\n",
195
+ " <td>55.0</td>\n",
196
+ " <td>primal</td>\n",
197
+ " </tr>\n",
198
+ " <tr>\n",
199
+ " <th>176</th>\n",
200
+ " <td>t8</td>\n",
201
+ " <td>ev</td>\n",
202
+ " <td>var</td>\n",
203
+ " <td>state</td>\n",
204
+ " <td>50.0</td>\n",
205
+ " <td>primal</td>\n",
206
+ " </tr>\n",
207
+ " <tr>\n",
208
+ " <th>177</th>\n",
209
+ " <td>t9</td>\n",
210
+ " <td>ev</td>\n",
211
+ " <td>var</td>\n",
212
+ " <td>state</td>\n",
213
+ " <td>45.0</td>\n",
214
+ " <td>primal</td>\n",
215
+ " </tr>\n",
216
+ " <tr>\n",
217
+ " <th>178</th>\n",
218
+ " <td>t10</td>\n",
219
+ " <td>ev</td>\n",
220
+ " <td>var</td>\n",
221
+ " <td>state</td>\n",
222
+ " <td>40.0</td>\n",
223
+ " <td>primal</td>\n",
224
+ " </tr>\n",
225
+ " <tr>\n",
226
+ " <th>179</th>\n",
227
+ " <td>t11</td>\n",
228
+ " <td>ev</td>\n",
229
+ " <td>var</td>\n",
230
+ " <td>state</td>\n",
231
+ " <td>35.0</td>\n",
232
+ " <td>primal</td>\n",
233
+ " </tr>\n",
234
+ " <tr>\n",
235
+ " <th>180</th>\n",
236
+ " <td>t12</td>\n",
237
+ " <td>ev</td>\n",
238
+ " <td>var</td>\n",
239
+ " <td>state</td>\n",
240
+ " <td>30.0</td>\n",
241
+ " <td>primal</td>\n",
242
+ " </tr>\n",
243
+ " <tr>\n",
244
+ " <th>181</th>\n",
245
+ " <td>t13</td>\n",
246
+ " <td>ev</td>\n",
247
+ " <td>var</td>\n",
248
+ " <td>state</td>\n",
249
+ " <td>25.0</td>\n",
250
+ " <td>primal</td>\n",
251
+ " </tr>\n",
252
+ " <tr>\n",
253
+ " <th>182</th>\n",
254
+ " <td>t14</td>\n",
255
+ " <td>ev</td>\n",
256
+ " <td>var</td>\n",
257
+ " <td>state</td>\n",
258
+ " <td>20.0</td>\n",
259
+ " <td>primal</td>\n",
260
+ " </tr>\n",
261
+ " <tr>\n",
262
+ " <th>183</th>\n",
263
+ " <td>t15</td>\n",
264
+ " <td>ev</td>\n",
265
+ " <td>var</td>\n",
266
+ " <td>state</td>\n",
267
+ " <td>15.0</td>\n",
268
+ " <td>primal</td>\n",
269
+ " </tr>\n",
270
+ " <tr>\n",
271
+ " <th>184</th>\n",
272
+ " <td>t16</td>\n",
273
+ " <td>ev</td>\n",
274
+ " <td>var</td>\n",
275
+ " <td>state</td>\n",
276
+ " <td>10.0</td>\n",
277
+ " <td>primal</td>\n",
278
+ " </tr>\n",
279
+ " <tr>\n",
280
+ " <th>185</th>\n",
281
+ " <td>t17</td>\n",
282
+ " <td>ev</td>\n",
283
+ " <td>var</td>\n",
284
+ " <td>state</td>\n",
285
+ " <td>5.0</td>\n",
286
+ " <td>primal</td>\n",
287
+ " </tr>\n",
288
+ " <tr>\n",
289
+ " <th>186</th>\n",
290
+ " <td>t18</td>\n",
291
+ " <td>ev</td>\n",
292
+ " <td>var</td>\n",
293
+ " <td>state</td>\n",
294
+ " <td>-0.0</td>\n",
295
+ " <td>primal</td>\n",
296
+ " </tr>\n",
297
+ " <tr>\n",
298
+ " <th>187</th>\n",
299
+ " <td>t19</td>\n",
300
+ " <td>ev</td>\n",
301
+ " <td>var</td>\n",
302
+ " <td>state</td>\n",
303
+ " <td>17.0</td>\n",
304
+ " <td>primal</td>\n",
305
+ " </tr>\n",
306
+ " <tr>\n",
307
+ " <th>188</th>\n",
308
+ " <td>t20</td>\n",
309
+ " <td>ev</td>\n",
310
+ " <td>var</td>\n",
311
+ " <td>state</td>\n",
312
+ " <td>17.0</td>\n",
313
+ " <td>primal</td>\n",
314
+ " </tr>\n",
315
+ " <tr>\n",
316
+ " <th>189</th>\n",
317
+ " <td>t21</td>\n",
318
+ " <td>ev</td>\n",
319
+ " <td>var</td>\n",
320
+ " <td>state</td>\n",
321
+ " <td>17.0</td>\n",
322
+ " <td>primal</td>\n",
323
+ " </tr>\n",
324
+ " <tr>\n",
325
+ " <th>190</th>\n",
326
+ " <td>t22</td>\n",
327
+ " <td>ev</td>\n",
328
+ " <td>var</td>\n",
329
+ " <td>state</td>\n",
330
+ " <td>17.0</td>\n",
331
+ " <td>primal</td>\n",
332
+ " </tr>\n",
333
+ " <tr>\n",
334
+ " <th>191</th>\n",
335
+ " <td>t23</td>\n",
336
+ " <td>ev</td>\n",
337
+ " <td>var</td>\n",
338
+ " <td>state</td>\n",
339
+ " <td>17.0</td>\n",
340
+ " <td>primal</td>\n",
341
+ " </tr>\n",
342
+ " <tr>\n",
343
+ " <th>192</th>\n",
344
+ " <td>t24</td>\n",
345
+ " <td>ev</td>\n",
346
+ " <td>var</td>\n",
347
+ " <td>state</td>\n",
348
+ " <td>17.0</td>\n",
349
+ " <td>primal</td>\n",
350
+ " </tr>\n",
351
+ " </tbody>\n",
352
+ "</table>\n",
353
+ "</div>"
354
+ ],
355
+ "text/plain": [
356
+ " snapshot component fieldtype field value mode\n",
357
+ "169 t1 ev var state 55.0 primal\n",
358
+ "170 t2 ev var state 55.0 primal\n",
359
+ "171 t3 ev var state 55.0 primal\n",
360
+ "172 t4 ev var state 55.0 primal\n",
361
+ "173 t5 ev var state 55.0 primal\n",
362
+ "174 t6 ev var state 55.0 primal\n",
363
+ "175 t7 ev var state 55.0 primal\n",
364
+ "176 t8 ev var state 50.0 primal\n",
365
+ "177 t9 ev var state 45.0 primal\n",
366
+ "178 t10 ev var state 40.0 primal\n",
367
+ "179 t11 ev var state 35.0 primal\n",
368
+ "180 t12 ev var state 30.0 primal\n",
369
+ "181 t13 ev var state 25.0 primal\n",
370
+ "182 t14 ev var state 20.0 primal\n",
371
+ "183 t15 ev var state 15.0 primal\n",
372
+ "184 t16 ev var state 10.0 primal\n",
373
+ "185 t17 ev var state 5.0 primal\n",
374
+ "186 t18 ev var state -0.0 primal\n",
375
+ "187 t19 ev var state 17.0 primal\n",
376
+ "188 t20 ev var state 17.0 primal\n",
377
+ "189 t21 ev var state 17.0 primal\n",
378
+ "190 t22 ev var state 17.0 primal\n",
379
+ "191 t23 ev var state 17.0 primal\n",
380
+ "192 t24 ev var state 17.0 primal"
381
+ ]
382
+ },
383
+ "execution_count": 12,
384
+ "metadata": {},
385
+ "output_type": "execute_result"
386
+ }
387
+ ],
388
+ "source": [
389
+ "model = iesopt.run(config, config={\"general.verbosity.core\": \"error\"})\n",
390
+ "\n",
391
+ "model.results.to_pandas().query(\n",
392
+ " \"component == 'ev' and field == 'state' and mode == 'primal'\"\n",
393
+ ")"
394
+ ]
395
+ }
396
+ ],
397
+ "metadata": {
398
+ "kernelspec": {
399
+ "display_name": ".venv",
400
+ "language": "python",
401
+ "name": "python3"
402
+ },
403
+ "language_info": {
404
+ "codemirror_mode": {
405
+ "name": "ipython",
406
+ "version": 3
407
+ },
408
+ "file_extension": ".py",
409
+ "mimetype": "text/x-python",
410
+ "name": "python",
411
+ "nbconvert_exporter": "python",
412
+ "pygments_lexer": "ipython3",
413
+ "version": "3.12.8"
414
+ }
415
+ },
416
+ "nbformat": 4,
417
+ "nbformat_minor": 2
418
+ }