Run Config
Input for configuring detailed grid (Samnett) simulation options.
The run configuration controls the behaviour of the detailed grid calculations, including loss calculations, PTDF generation, power flow constraints, overload handling and convergence settings.
The parameters documented below are intended for advanced studies and tuning of the interaction between the market model and the transmission network model.
Required input¶
The run configuration object must include the following required input:
Required input
| Parameter | Type | Description |
|---|---|---|
| name | string | Object name |
| bus_number_swingbus_area_1 | int | Busbar identifier of the swing busbar. |
Minimal example JSON¶
Minimal example JSON
Minimal example |
|---|
|
Optional input¶
Run Config optional input
| Parameter | Type | Description |
|---|---|---|
| include_shunt_elements | boolean | Include shunt elements in power flow calculations. |
| include_phase_shifter_in_loadflow_file | boolean | Include phase shifters in power flow calculations. |
| loss_calculation | boolean | Enable iterative calculation of transmission losses. |
| marginal_loss_calculation | boolean | Calculate marginal losses for all busbars and intraweek timesteps. Results are written to MargLoss.dat. |
| nordel_loss_functionality | boolean | Allocate interconnection losses to the receiving area. If false, losses are shared equally between connected areas. |
| print_fbmc_parameters | boolean | Write FBMC parameters to FBMCparams.csv. |
| successive_LP | boolean | Update existing power flow constraints whenever new PTDFs are computed. |
| add_all_power_flow_constraints | boolean | Add all power flow constraints in the first iteration instead of adding them iteratively. |
| accepted_overload | double | Accepted overload margin when evaluating monitored network elements. A value of 1.10 allows flows up to 10% above the defined limit. |
| relax_maske_bounds | string | Controls removal of area exchange capacity bounds. Supported values are "none", "partial" and "full". |
| print_power_balance_mismatch_tolerance | double | Allowed difference between area-level injections in the market model and the detailed grid model. Larger mismatches are written to BalanseSjekk.dat. |
| ptdf_weight | string | Method used when aggregating PTDFs from busbar level to area level. Supported values are "flat", "injection" and "sum_load_and_generation". |
| max_grid_iterations | int | Maximum number of iterations between the market model and the detailed grid model. |
| loss_voltage_limit | double | Lower voltage threshold for busbars included in transmission loss calculations [kV]. |
| #comment | string | User comment. |
Notes¶
Loss calculations¶
If loss_calculation is enabled, transmission losses are calculated in the DC power flow model and transferred back to the market model in the next iteration.
Enabling marginal_loss_calculation provides approximate marginal losses for each busbar and timestep. This option is computationally expensive and may significantly increase simulation time.
Power flow constraints¶
The parameters successive_LP and add_all_power_flow_constraints control how power flow constraints are introduced in the optimization:
successive_LP = false(default) adds constraints iteratively as overloads are discovered.successive_LP = trueupdates previously added constraints whenever PTDFs are recalculated.add_all_power_flow_constraints = trueadds all constraints immediately and skips the iterative overload search process.
Exchange capacity bounds¶
The parameter relax_maske_bounds determines how exchange capacity limits defined on DC Lines are treated during grid calculations:
none: keep all exchange limits (default).partial: remove limits for overloaded interconnections.full: remove all exchange limits.
Keeping the bounds generally provides the fastest and most stable convergence.
PTDF aggregation¶
The ptdf_weight parameter determines how busbar-level PTDF values are aggregated to area-level PTDFs:
flat: all busbars receive equal weight.injection: weighting based on power injections.sum_load_and_generation: weighting based on the sum of absolute load and generation.
The selected weighting method can influence power flow constraint behaviour, especially in large areas with uneven generation and load distribution.