Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

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

ParameterTypeDescription
namestringObject name
bus_number_swingbus_area_1intBusbar identifier of the swing busbar.

Minimal example JSON

Minimal example JSON

Minimal example

{
    "name": "default_run_config",
    "bus_number_swingbus_area_1": 10000
}

Optional input

Run Config optional input

ParameterTypeDescription
include_shunt_elementsbooleanInclude shunt elements in power flow calculations.
include_phase_shifter_in_loadflow_filebooleanInclude phase shifters in power flow calculations.
loss_calculationbooleanEnable iterative calculation of transmission losses.
marginal_loss_calculationbooleanCalculate marginal losses for all busbars and intraweek timesteps. Results are written to MargLoss.dat.
nordel_loss_functionalitybooleanAllocate interconnection losses to the receiving area. If false, losses are shared equally between connected areas.
print_fbmc_parametersbooleanWrite FBMC parameters to FBMCparams.csv.
successive_LPbooleanUpdate existing power flow constraints whenever new PTDFs are computed.
add_all_power_flow_constraintsbooleanAdd all power flow constraints in the first iteration instead of adding them iteratively.
accepted_overloaddoubleAccepted overload margin when evaluating monitored network elements. A value of 1.10 allows flows up to 10% above the defined limit.
relax_maske_boundsstringControls removal of area exchange capacity bounds. Supported values are "none", "partial" and "full".
print_power_balance_mismatch_tolerancedoubleAllowed difference between area-level injections in the market model and the detailed grid model. Larger mismatches are written to BalanseSjekk.dat.
ptdf_weightstringMethod used when aggregating PTDFs from busbar level to area level. Supported values are "flat", "injection" and "sum_load_and_generation".
max_grid_iterationsintMaximum number of iterations between the market model and the detailed grid model.
loss_voltage_limitdoubleLower voltage threshold for busbars included in transmission loss calculations [kV].
#commentstringUser 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:

Exchange capacity bounds

The parameter relax_maske_bounds determines how exchange capacity limits defined on DC Lines are treated during grid calculations:

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:

The selected weighting method can influence power flow constraint behaviour, especially in large areas with uneven generation and load distribution.