2025-11-13 22:53:46 +01:00
## General Optimization Configuration
<!-- pyml disable line-length -->
:::{table} optimization
:widths: 10 20 10 5 5 30
:align: left
| Name | Environment Variable | Type | Read-Only | Default | Description |
| ---- | -------------------- | ---- | --------- | ------- | ----------- |
2026-04-15 08:48:56 +02:00
| algorithm | `EOS_OPTIMIZATION__ALGORITHM` | `str` | `rw` | `GENETIC` | The optimization algorithm. Defaults to GENETIC |
2026-07-29 12:56:08 +02:00
| algorithms | | `list[str]` | `ro` | `N/A` | Available optimization algorithms. |
| genetic | `EOS_OPTIMIZATION__GENETIC` | `GeneticCommonSettings` | `rw` | `required` | GENETIC optimization algorithm configuration. |
| genetic0 | `EOS_OPTIMIZATION__GENETIC0` | `Genetic0CommonSettings` | `rw` | `required` | GENETIC0 optimization algorithm configuration. |
2025-12-30 22:08:21 +01:00
| keys | | `list[str]` | `ro` | `N/A` | The keys of the solution. |
2025-11-13 22:53:46 +01:00
:::
<!-- pyml enable line-length -->
<!-- pyml disable no-emphasis-as-heading -->
2025-12-30 22:08:21 +01:00
**Example Input**
2025-11-13 22:53:46 +01:00
<!-- pyml enable no-emphasis-as-heading -->
<!-- pyml disable line-length -->
```json
{
"optimization" : {
"algorithm" : "GENETIC" ,
"genetic" : {
2026-07-29 12:56:08 +02:00
"interval_sec" : 3600 ,
"horizon_hours" : 24 ,
"individuals" : 400 ,
"generations" : 400 ,
"seed" : null ,
"penalties" : {
"ev_soc_miss" : 10
}
},
"genetic0" : {
"horizon_hours" : 24 ,
2025-11-13 22:53:46 +01:00
"individuals" : 400 ,
"generations" : 400 ,
"seed" : null ,
"penalties" : {
"ev_soc_miss" : 10
}
}
}
}
```
<!-- pyml enable line-length -->
2025-12-30 22:08:21 +01:00
<!-- pyml disable no-emphasis-as-heading -->
**Example Output**
<!-- pyml enable no-emphasis-as-heading -->
<!-- pyml disable line-length -->
```json
{
"optimization" : {
"algorithm" : "GENETIC" ,
"genetic" : {
2026-07-29 12:56:08 +02:00
"interval_sec" : 3600 ,
"horizon_hours" : 24 ,
2025-12-30 22:08:21 +01:00
"individuals" : 400 ,
"generations" : 400 ,
"seed" : null ,
"penalties" : {
"ev_soc_miss" : 10
2026-07-29 12:56:08 +02:00
},
"horizon" : 24
2025-12-30 22:08:21 +01:00
},
2026-07-29 12:56:08 +02:00
"genetic0" : {
"horizon_hours" : 24 ,
"individuals" : 400 ,
"generations" : 400 ,
"seed" : null ,
"penalties" : {
"ev_soc_miss" : 10
},
"interval_sec" : 3600 ,
"horizon" : 24
},
"algorithms" : [
"GENETIC" ,
"GENETIC0"
],
"keys" : []
2025-12-30 22:08:21 +01:00
}
}
```
<!-- pyml enable line-length -->
2026-07-29 12:56:08 +02:00
### GENETIC0 Optimization Algorithm Configuration
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2026-07-29 12:56:08 +02:00
:::{table} optimization::genetic0
2025-11-13 22:53:46 +01:00
:widths: 10 10 5 5 30
:align: left
| Name | Type | Read-Only | Default | Description |
| ---- | ---- | --------- | ------- | ----------- |
2026-07-24 15:52:26 +02:00
| generations | `int | None` | `rw` | `400` | Number of generations to evolve [>= 10]. Defaults to 400. |
2026-07-29 12:56:08 +02:00
| horizon | `int` | `ro` | `N/A` | Number of optimization steps. |
| horizon_hours | `int` | `rw` | `24` | The general time window within which the energy optimization goal shall be achieved [h]. Defaults to 24 hours. |
2026-07-24 15:52:26 +02:00
| individuals | `int | None` | `rw` | `300` | Number of individuals (solutions) in the population [>= 10]. Defaults to 300. |
2026-07-29 12:56:08 +02:00
| interval_sec | `int` | `ro` | `N/A` | The optimization interval [sec]. Fixed to 1 hour (3600 seconds). |
2026-07-24 15:52:26 +02:00
| penalties | `dict[str, float | int | str]` | `rw` | `required` | Penalty parameters used in fitness evaluation. |
| seed | `int | None` | `rw` | `None` | Random seed for reproducibility. None = random. |
2025-11-13 22:53:46 +01:00
:::
<!-- pyml enable line-length -->
<!-- pyml disable no-emphasis-as-heading -->
2026-07-29 12:56:08 +02:00
**Example Input**
2025-11-13 22:53:46 +01:00
<!-- pyml enable no-emphasis-as-heading -->
<!-- pyml disable line-length -->
```json
{
"optimization" : {
2026-07-29 12:56:08 +02:00
"genetic0" : {
"horizon_hours" : 24 ,
2025-11-13 22:53:46 +01:00
"individuals" : 300 ,
"generations" : 400 ,
"seed" : null ,
"penalties" : {
"ev_soc_miss" : 10
}
}
}
}
```
<!-- pyml enable line-length -->
2026-07-29 12:56:08 +02:00
<!-- pyml disable no-emphasis-as-heading -->
**Example Output**
<!-- pyml enable no-emphasis-as-heading -->
<!-- pyml disable line-length -->
```json
{
"optimization" : {
"genetic0" : {
"horizon_hours" : 24 ,
"individuals" : 300 ,
"generations" : 400 ,
"seed" : null ,
"penalties" : {
"ev_soc_miss" : 10
},
"interval_sec" : 3600 ,
"horizon" : 24
}
}
}
```
<!-- pyml enable line-length -->
### GENETIC Optimization Algorithm Configuration
<!-- pyml disable line-length -->
:::{table} optimization::genetic
:widths: 10 10 5 5 30
:align: left
| Name | Type | Read-Only | Default | Description |
| ---- | ---- | --------- | ------- | ----------- |
| generations | `int | None` | `rw` | `400` | Number of generations to evolve [>= 10]. Defaults to 400. |
| horizon | `int` | `ro` | `N/A` | Number of optimization steps. |
| horizon_hours | `int` | `rw` | `24` | The general time window within which the energy optimization goal shall be achieved [h]. Defaults to 24 hours. |
| individuals | `int | None` | `rw` | `300` | Number of individuals (solutions) in the population [>= 10]. Defaults to 300. |
| interval_sec | `int` | `rw` | `3600` | The optimization interval [sec]. Defaults to 3600 seconds (1 hour) |
| penalties | `dict[str, float | int | str]` | `rw` | `required` | Penalty parameters used in fitness evaluation. |
| seed | `int | None` | `rw` | `None` | Random seed for reproducibility. None = random. |
:::
<!-- pyml enable line-length -->
<!-- pyml disable no-emphasis-as-heading -->
**Example Input**
<!-- pyml enable no-emphasis-as-heading -->
<!-- pyml disable line-length -->
```json
{
"optimization" : {
"genetic" : {
"interval_sec" : 3600 ,
"horizon_hours" : 24 ,
"individuals" : 300 ,
"generations" : 400 ,
"seed" : null ,
"penalties" : {
"ev_soc_miss" : 10
}
}
}
}
```
<!-- pyml enable line-length -->
<!-- pyml disable no-emphasis-as-heading -->
**Example Output**
<!-- pyml enable no-emphasis-as-heading -->
<!-- pyml disable line-length -->
```json
{
"optimization" : {
"genetic" : {
"interval_sec" : 3600 ,
"horizon_hours" : 24 ,
"individuals" : 300 ,
"generations" : 400 ,
"seed" : null ,
"penalties" : {
"ev_soc_miss" : 10
},
"horizon" : 24
}
}
}
```
<!-- pyml enable line-length -->