## General Optimization Configuration :::{table} optimization :widths: 10 20 10 5 5 30 :align: left | Name | Environment Variable | Type | Read-Only | Default | Description | | ---- | -------------------- | ---- | --------- | ------- | ----------- | | algorithm | `EOS_OPTIMIZATION__ALGORITHM` | `str` | `rw` | `GENETIC` | The optimization algorithm. Defaults to GENETIC | | 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. | | keys | | `list[str]` | `ro` | `N/A` | The keys of the solution. | ::: **Example Input** ```json { "optimization": { "algorithm": "GENETIC", "genetic": { "interval_sec": 3600, "horizon_hours": 24, "individuals": 400, "generations": 400, "seed": null, "penalties": { "ev_soc_miss": 10 } }, "genetic0": { "horizon_hours": 24, "individuals": 400, "generations": 400, "seed": null, "penalties": { "ev_soc_miss": 10 } } } } ``` **Example Output** ```json { "optimization": { "algorithm": "GENETIC", "genetic": { "interval_sec": 3600, "horizon_hours": 24, "individuals": 400, "generations": 400, "seed": null, "penalties": { "ev_soc_miss": 10 }, "horizon": 24 }, "genetic0": { "horizon_hours": 24, "individuals": 400, "generations": 400, "seed": null, "penalties": { "ev_soc_miss": 10 }, "interval_sec": 3600, "horizon": 24 }, "algorithms": [ "GENETIC", "GENETIC0" ], "keys": [] } } ``` ### GENETIC0 Optimization Algorithm Configuration :::{table} optimization::genetic0 :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` | `ro` | `N/A` | The optimization interval [sec]. Fixed to 1 hour (3600 seconds). | | 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. | ::: **Example Input** ```json { "optimization": { "genetic0": { "horizon_hours": 24, "individuals": 300, "generations": 400, "seed": null, "penalties": { "ev_soc_miss": 10 } } } } ``` **Example Output** ```json { "optimization": { "genetic0": { "horizon_hours": 24, "individuals": 300, "generations": 400, "seed": null, "penalties": { "ev_soc_miss": 10 }, "interval_sec": 3600, "horizon": 24 } } } ``` ### GENETIC Optimization Algorithm Configuration :::{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. | ::: **Example Input** ```json { "optimization": { "genetic": { "interval_sec": 3600, "horizon_hours": 24, "individuals": 300, "generations": 400, "seed": null, "penalties": { "ev_soc_miss": 10 } } } } ``` **Example Output** ```json { "optimization": { "genetic": { "interval_sec": 3600, "horizon_hours": 24, "individuals": 300, "generations": 400, "seed": null, "penalties": { "ev_soc_miss": 10 }, "horizon": 24 } } } ```