Skip to content

Unmet Load - Inputs

Unmet Load components act as "last resort" generators with very high penalty costs. They allow the optimizer to solve even when demand cannot be fully met, providing diagnostic information about system adequacy. Below are all input attributes that you can set for unmet load components.

WARNING

Unmet Load is a special generator type used to identify supply shortfalls. If unmet load is dispatched in your results, it indicates insufficient generation or transmission capacity to meet demand.

Basic

AttributeData TypeUnitDefaultRequiredStorage TypeDescription
typestringn/an/aNostaticPlaceholder for unmet load type. Not yet implemented.
carrierstringn/an/aNostaticPrime mover Carrier (e.g. coal, gas, wind, solar); required for global constraints on primary energy in optimization
activebooleann/aTrueNostaticWhether this unmet load generator is active and should be included in network calculations. Set to False to temporarily disable the generator without deleting it.

Capacity

AttributeData TypeUnitDefaultRequiredStorage TypeDescription
p_nomfloatMW10000000NostaticThe maximum rated capacity in MW. For unmet load, this is typically set very high (e.g., 10000000 MW) to allow the optimizer to serve any unmet demand. This sets the upper limit for power output in all calculations.
p_nom_extendablebooleann/aFalseNostaticSwitch to allow the nominal power (p_nom) to be extended in optimization.
p_nom_minfloatMW0NostaticIf the nominal power (p_nom) is extendable in optimization, set its minimum value.
p_nom_maxfloatMWinfNostaticIf the nominal power (p_nom) is extendable in optimization, set its maximum value (e.g. limited by technical potential).
build_yearintyear0NostaticThe year when the unmet load generator can be built or commissioned. Essential for multi-year capacity expansion planning models, which determine optimal investment timing and generator retirement schedules.
lifetimefloatyearsinfNostaticThe operational lifetime of the unmet load generator in years. Essential for multi-year capacity expansion planning models, which use this to determine when generators retire (build year + lifetime). Set to "inf" for generators that never retire.

Power Limits

AttributeData TypeUnitDefaultRequiredStorage TypeDescription
p_min_pufloatper unit0Nostatic or timeseriesThe minimum output for each snapshot per unit of the nominal power (p_nom) for the optimization. Note that if committable is False and p_min_pu > 0, this represents a must-run condition.
p_max_pufloatper unit1Nostatic or timeseriesThe maximum output for each snapshot per unit of the nominal power (p_nom) for the optimization.
p_setfloatMW0Nostatic or timeseriesFixed active power output that the unmet load generator must produce. Used when the output is predetermined rather than optimized.
q_setfloatMVar0Nostatic or timeseriesFixed reactive power output that the unmet load generator must produce. Used when the reactive power output is predetermined rather than optimized.
signfloatn/a1NostaticPower flow direction convention: 1 for generation (positive power flows into the network), -1 for consumption (positive power flows out of the network).

Energy

AttributeData TypeUnitDefaultRequiredStorage TypeDescription
efficiencyfloatper unit1Nostatic or timeseriesRatio between primary energy and electrical energy, e.g. takes value 0.4 MWh_elec/MWh_thermal for gas. This is required for global constraints on primary energy in optimization.

Unit Commitment

AttributeData TypeUnitDefaultRequiredStorage TypeDescription
committablebooleann/aFalseNostaticEnable unit commitment, allowing the unmet load generator to be turned on or off with associated start-up and shutdown costs. Only available when the nominal power (p_nom) is not extendable.
start_up_costfloatcurrency0NostaticCost to start up the unmet load generator. Only read if committable is True.
shut_down_costfloatcurrency0NostaticCost to shut down the unmet load generator. Only read if committable is True.
min_up_timeintsnapshots0NostaticMinimum number of snapshots for status to be 1. Only read if committable is True.
min_down_timeintsnapshots0NostaticMinimum number of snapshots for status to be 0. Only read if committable is True.
up_time_beforeintsnapshots1NostaticNumber of snapshots that the unmet load generator was online before network.snapshots start. Only read if committable is True and min_up_time is non-zero.
down_time_beforeintsnapshots0NostaticNumber of snapshots that the unmet load generator was offline before network.snapshots start. Only read if committable is True and min_down_time is non-zero.

Ramping

AttributeData TypeUnitDefaultRequiredStorage TypeDescription
ramp_limit_upfloatper unit1Nostatic or timeseriesMaximum active power increase from one snapshot to the next, per unit of the nominal power (p_nom). Ignored if 1.
ramp_limit_downfloatper unit1Nostatic or timeseriesMaximum active power decrease from one snapshot to the next, per unit of the nominal power (p_nom). Ignored if 1.
ramp_limit_start_upfloatper unit1NostaticMaximum active power increase at start up, per unit of the nominal power (p_nom). Only read if committable is True.
ramp_limit_shut_downfloatper unit1NostaticMaximum active power decrease at shut down, per unit of the nominal power (p_nom). Only read if committable is True.

Costs

AttributeData TypeUnitDefaultRequiredStorage TypeDescription
marginal_costfloatcurrency/MWh100000000Nostatic or timeseriesThe variable cost of producing one additional MWh of electricity. For unmet load, this is typically set very high (e.g., 100000000 currency/MWh) as a penalty cost to discourage the optimizer from using this generator unless absolutely necessary. Used by the optimizer to determine the economic dispatch order.
capital_costfloatcurrency/MW0Nostatic or timeseriesThe cost per MW of adding new capacity. Includes investment costs (spread over the planning period) and fixed operations & maintenance costs. Only relevant when p_nom_extendable is True.

Electrical

AttributeData TypeUnitDefaultRequiredStorage TypeDescription
controlstringn/aPQNostaticPower flow control mode: "PQ" (fixed active and reactive power), "PV" (fixed active power and voltage magnitude), or "Slack" (balances system power, typically one per network).

© Copyright 2025 Bayesian Energy