Skip to content

Line - Inputs

Lines represent AC transmission lines connecting two buses with impedance parameters. Below are all input attributes that you can set for line components.

WARNING

Lines can only use AC carriers. For DC transmission, use Link components instead.

Basic

AttributeData TypeUnitDefaultRequiredStorage TypeDescription
typestringn/a(empty)NostaticName of a predefined line standard type. If set, the line standard impedance parameters are automatically calculated from the line length and number of parallel lines, overriding any manually set values for x, r, and b. Leave empty to manually specify impedance parameters.
carrierstringn/a(empty)NostaticCarrier type for the line. Must be "AC" (alternating current) as lines only support AC transmission.
activebooleann/aTrueNostaticWhether this line is active and should be included in network calculations. Set to False to temporarily disable the line without deleting it.

Capacity

AttributeData TypeUnitDefaultRequiredStorage TypeDescription
s_nomfloatMVA0YesstaticThe maximum apparent power capacity of the line in MVA. This sets the thermal limit for power flow through the line.
s_nom_modfloatMVA0NostaticThe unit size for capacity expansion. When extending the nominal apparent power (s_nom), it can only be increased in multiples of this module size.
s_nom_extendablebooleann/aFalseNostaticSwitch to allow the nominal apparent power (s_nom) to be extended in optimization.
s_nom_minfloatMVA0NostaticIf the nominal apparent power (s_nom) is extendable in optimization, set its minimum value.
s_nom_maxfloatMVAinfNostaticIf the nominal apparent power (s_nom) is extendable in optimization, set its maximum value (e.g. limited by technical potential or right-of-way constraints).
build_yearintyear0NostaticThe year when the line can be built or commissioned. Essential for multi-year capacity expansion planning models, which determine optimal investment timing and line retirement schedules.
lifetimefloatyearsinfNostaticThe operational lifetime of the line in years. Essential for multi-year capacity expansion planning models, which use this to determine when lines retire (build year + lifetime). Set to "inf" for lines that never retire.

Electrical

AttributeData TypeUnitDefaultRequiredStorage TypeDescription
xfloatOhm0YesstaticThe series reactance of the line in Ohms. Must be non-zero for AC lines in power flow calculations. If the line has series inductance L in Henries, then x = 2πfL where f is the frequency in Hertz. The series impedance is z = r + jx. Ignored if line type is set.
rfloatOhm0NostaticThe series resistance of the line in Ohms. Must be non-zero for DC lines in power flow calculations. The series impedance is z = r + jx. Ignored if line type is set.
gfloatSiemens0NostaticThe shunt conductance of the line in Siemens. The shunt admittance is y = g + jb, where b is the shunt susceptance.
bfloatSiemens0NostaticThe shunt susceptance of the line in Siemens. If the line has shunt capacitance C in Farads, then b = 2πfC where f is the frequency in Hertz. The shunt admittance is y = g + jb. Ignored if line type is set.
lengthfloatkm0NostaticThe physical length of the line in kilometers. Required when line type is set to calculate impedance parameters automatically. Also used for calculating capital costs.
terrain_factorfloatper unit1NostaticMultiplier for capital cost to account for difficult terrain. Values greater than 1 increase the capital cost to reflect higher construction costs in challenging terrain (e.g., mountains, water crossings).
num_parallelfloatn/a1NostaticThe number of parallel transmission circuits (can be fractional). When line type is set, this is used to calculate the total impedance (more parallel lines reduce effective impedance). If line type is empty, this value is ignored.
v_ang_minfloatDegrees-infNostaticMinimum voltage angle difference across the line in degrees. This is a placeholder attribute and is not currently used by any functions.
v_ang_maxfloatDegreesinfNostaticMaximum voltage angle difference across the line in degrees. This is a placeholder attribute and is not currently used by any functions.

Power Limits

AttributeData TypeUnitDefaultRequiredStorage TypeDescription
s_max_pufloatper unit1Nostatic or timeseriesThe maximum allowed absolute flow per unit of the nominal apparent power (s_nom). Can be set less than 1 to account for security margins (e.g., n-1 contingency), or can be time-varying to represent weather-dependent dynamic line rating for overhead lines.

Costs

AttributeData TypeUnitDefaultRequiredStorage TypeDescription
capital_costfloatcurrency/MVA0NostaticThe cost per MVA of adding new line capacity. Includes investment costs (spread over the planning period) and fixed operations & maintenance costs. Only relevant when s_nom_extendable is True.

© Copyright 2025 Bayesian Energy