Unit Types#

In power system modeling, various unit types are used to represent the components responsible for generating, storing, and consuming electricity. These units are essential for simulating the operation of the grid and ensuring a reliable balance between supply and demand.

The primary unit types in this context include:

  1. Power Plants: These are conventional or renewable energy generators, such as coal, gas, wind, or solar power plants. They are responsible for supplying electricity to the grid based on the system’s demand.

  2. Storage Units: These units, like batteries or pumped hydro storage, can store electricity when supply exceeds demand and release it when needed, adding flexibility to the grid.

  3. Demand Units: These represent consumers of electricity, such as households, industries, or commercial buildings, whose electricity consumption is typically fixed and not easily adjustable based on real-time grid conditions. Demand units will therefore be modelled with inelastic demand most often. However, representation of elastic bidding is possible with this unit type.

Each unit type has specific characteristics that affect how the power system operates, and understanding these is key to modeling and optimizing grid performance.

Demand-Side Agents & Management#

This section describes the demand-side units and management strategies available in the toolbox. The module enables the modeling of demand-side units such as industrial facilities (e.g., steel plants) and residential buildings, with detailed optimization of electricity consumption and load-shifting capabilities.

Overview#

Demand-Side Units (DSUs) represent entities that manage energy consumption and contribute to the electricity market. These entities are optimized based on specific objectives, such as minimizing costs or maximizing operational flexibility. The two main types of demand-side agents modeled in this module are Industrial Agents (e.g., Steel Plant) and Residential Agents (e.g., Buildings).

Modeling Demand-Side Units (DSUs)#

Demand-Side Units (DSUs) are modeled using a component-based approach, where each DSU is a combination of multiple technologies or processes. Each DSU can either be an industrial facility or a residential building. The DSU model is designed to automatically create the process flow by connecting the appropriate components based on user inputs.

For example:

  • Industrial DSU: The Steel Plant agent connects components like electrolysers, hydrogen storage, DRI plants, and electric arc furnaces to form a complete production process. This is automatically done by providing input components, and the system handles the rest.

  • Residential DSU: The Building agent connects components like heat pumps, thermal storage, and EV chargers to optimize the energy consumption of a residential building.

DSM Flexibility and Load Shifting#

The assume.units.dsm_load_shift module integrates load-shifting capabilities into agents. This allows for: - Defining cost tolerance for flexibility. - Shifting loads between time steps based on operational flexibility. - Recalculating operations based on market offers and accepted bids.

Rolling-Horizon Optimisation#

DSM units support both a full-horizon solve and a rolling-horizon solve. Without additional configuration, units use the full simulation horizon. When rolling horizon is enabled, the unit repeatedly optimises a shorter look-ahead window, commits only the first part of that solution, and then re-optimises after the next market step with updated internal states.

Rolling-horizon operation is available for Building, SteelPlant, CementPlant, HydrogenPlant, and SteamPlant.

This is useful when the optimisation should stay responsive to market clearing results while still accounting for storage states, ramping limits, and process-coupling constraints over a wider future horizon.

Configuration#

Rolling-horizon behaviour is configured per plant via optional columns in the DSM units CSV (industrial_dsm_units.csv or residential_dsm_units.csv). The CSV scenario loader collects these columns from the first technology row of each plant and assembles them into the dsm_optimisation_config dict passed to the unit constructor.

The supported columns are:

  • horizon_mode: Either full_horizon or rolling_horizon.

  • look_ahead_horizon: Length of the optimisation window, for example 72h.

  • commit_horizon: Number of steps committed before the next re-optimisation, for example 24h.

  • rolling_step: Shift applied between consecutive windows, for example 24h.

Note

If horizon_mode is set to rolling_horizon, the values for look_ahead_horizon, commit_horizon, and rolling_step must all be provided on that plant row.

Example CSV row (only the relevant columns shown, plant A360 with three technology rows; the horizon values are filled once on the first row):

name,technology,...,horizon_mode,look_ahead_horizon,commit_horizon,rolling_step
A360,electrolyser,...,rolling_horizon,72h,24h,24h
A360,dri_plant,...,,,,
A360,eaf,...,,,,

Because the columns are read per plant, different plants in the same scenario can run with different rolling-horizon settings.

Using full horizon#

To run a plant with the full simulation horizon (the default behaviour), you have three equivalent options:

  1. Omit the four columns entirely from the CSV. This is the right choice for scenarios that never use rolling horizon — no migration needed.

  2. Include the columns but leave the cells blank for that plant. This is useful in mixed scenarios where some plants use rolling horizon and others run full horizon.

  3. Explicitly set horizon_mode: full_horizon on the plant row for readability. The three rolling-horizon columns can stay blank because the all-or-none validation only applies when horizon_mode is rolling_horizon.

Operational flow#

In rolling-horizon mode, the optimisation proceeds as follows:

  1. A look-ahead window is built from the current simulation step.

  2. The unit solves that window with the same process and flexibility constraints used in the full-horizon model.

  3. Only the first commit_horizon part of the solution is committed to the unit’s schedule.

  4. End-of-window component states, such as storage state of charge or operational status, are carried into the next window.

  5. After the market advances, the unit re-optimises the next window starting from the updated state.

This means DSM units can preserve inter-temporal feasibility while reacting to accepted bids and updated market conditions.

Steel plant strategies in rolling horizon#

For SteelPlant, rolling-horizon optimisation can combine the rolling window logic with different production guidance modes from the forecaster.

  • Cost-optimized: If no additional production guidance is provided, the steel plant minimizes cost freely across each rolling window.

  • Profile-guided: If normalized_load_profile is provided, the rolling-horizon solver keeps committed production close to the profile shape using soft profile-tracking constraints.

  • Min-demand: If per-timestep steel_demand is provided, the rolling-horizon solver enforces hourly minimum production levels in the committed part of each window.

The steel plant forecaster accepts either generic forecast columns or unit-specific columns:

  • normalized_load_profile or <unit_id>_normalized_load_profile

  • steel_demand or <unit_id>_steel_demand

These signals are copied to the unit during forecaster initialization and are used automatically by the rolling-horizon solver.

Hydrogen and steam plants in rolling horizon#

HydrogenPlant and SteamPlant use an inflexible per-timestep output requirement rather than a cumulative production target. Provide the profile at the simulation frequency and use the default demand=0 on the unit:

  • Hydrogen plant: HydrogenForecaster(hydrogen_demand=...).

  • Steam plant: SteamgenerationForecaster(thermal_demand=...).

For each rolling window, the corresponding portion of the profile is used in the hydrogen or thermal balance. Thus every committed time step must meet its own profile value. For a steam plant with a natural-gas or hydrogen boiler, the matching fuel-price profile is sliced to the same window as well.

Attributes#

  • Cost Tolerance: Defines how much additional cost can be tolerated for load-shifting.

  • Load Shift: Adjusts the total power input based on flexibility constraints and available storage or generation resources.

Example#

For a steel plant, the load-shifting mechanism can balance power input between the electrolyser, DRI plant, and EAF, adjusting production to minimize costs while meeting production targets.

DSU Components#

Each component (e.g., Electrolyser, Heat Pump, DRI Plant) is modeled in detail with specific constraints and parameters, such as: - Power input/output limits - Ramp rates - Efficiency - Operating costs - Load flexibility

For full references see assume.units.dst_components.

Bidding and Optimization#

Once the DSU is defined, it can participate in the electricity market by optimizing its operation to either minimize costs or maximize flexibility. The bidding strategy depends on the agent type and market conditions.

Industrial Agent: Steel Plant#

The Industrial Agent represents facilities such as steel plants, where key components like electrolysers, DRI plants, hydrogen storage, and electric arc furnaces are modeled. These components form a process flow that optimizes electricity consumption based on the agent’s objectives.

Attributes#

  • Technology: Represents components such as Electrolyser, DRI Plant, Hydrogen Storage, and Electric Arc Furnace.

  • Node: Connection point in the energy system.

  • Bidding Strategy: Defines how the steel plant bids in electricity markets. Example: DsmEnergyOptimizationStrategy.

  • Objective: Optimization target, such as minimizing operational costs.

  • Flexibility Measure: Load-shifting to optimize flexibility.

Components#

  • Electrolyser: Produces hydrogen via electrolysis with constraints on power limits, ramp rates, operating time, and costs.

  • DRI Plant: Models direct reduced iron production with fuel and power consumption constraints.

  • Electric Arc Furnace (EAF): Produces steel from DRI with power consumption, ramp rates, and CO2 emissions constraints.

Example Workflow#

  1. Instantiate the SteelPlant agent with required components (Electrolyser, DRI Plant, etc.).

  2. Define objectives, such as minimizing electricity costs.

  3. Run the optimization to generate bids for the electricity market.

Note

DSM units (e.g. SteelPlant, CementPlant, Building, HydrogenPlant, SteamGenerationPlant) build their internal optimisation model inside the forecaster’s initialize step. When running the simulation through the normal world / scenario loader this happens automatically. However, if you create a unit programmatically and do not call initialize() (or init_forecasts()), you must call unit.setup_model() explicitly before running optimisation on the unit.

Industrial Agent: Cement Plant#

The Cement Plant agent models the kiln line of a cement works: a preheater heats the raw meal, a calciner drives the calcination reaction that releases the process CO2, and a kiln finishes the clinker at high temperature. Every stage is fuel-switchable between electricity, a natural gas / coal mix and hydrogen, so one plant description covers both a conventional and an electrified configuration. Demand is expressed in tonnes to be produced over the horizon - clinker when a kiln line is configured, or a standalone mill’s own ground tonnage when it isn’t (see Grinding mills below).

Waste heat recovered from the kiln reduces the fuel the preheater needs, and an optional electric thermal storage lets the plant buy power when it is cheap and displace calciner burner heat later - which is where most of the plant’s demand-side flexibility comes from.

Attributes#

  • Technology: Represents components such as Preheater, Calciner, Kiln, Thermal Storage, Electrolyser, Raw Material Mill, and Cement Mill.

  • Node: Connection point in the energy system.

  • Bidding Strategy: Defines how the cement plant bids in electricity markets. Example: DsmEnergyOptimizationStrategy.

  • Objective: Minimising variable cost (min_variable_cost).

  • Flexibility Measure: Any measure provided by DSMFlex, e.g. load shifting, peak load shifting, congestion management, or renewable utilisation.

Components#

  • Preheater: Heats the raw meal (Preheater) and can additionally use waste heat recovered from the kiln.

  • Calciner: Drives calcination (Calciner), releasing process CO2 in proportion to the calcined material. The heat that reaches the reaction includes any thermal storage discharge.

  • Kiln: Finishes the clinker (Kiln) at a correspondingly higher specific heat demand, with energy emissions only.

  • Thermal Storage: In its short-term_with_generator mode (ThermalStorage) an electric heater charges the storage, making it a power-to-heat buffer for the calciner.

  • Electrolyser: Produces hydrogen on site for the calciner and kiln burners; the plant routes the production between them.

  • Raw Material Mill and Cement Mill: Electric grinding steps (GrindingMill) that convert raw materials to raw meal and clinker to cement respectively.

All three thermal stages account for auxiliary electricity (fans, drives, transport) per tonne of throughput in aux_power, separately from the electric heating path, so the auxiliaries are part of the plant load in every firing mode.

Grinding mills#

The raw material mill and cement mill are not automatically wired into the kiln line. A cement mill alongside a kiln line grinds that line’s clinker output as before; a plant made of only a raw material mill and/or only a cement mill - with no preheater/calciner/kiln at all - runs as a standalone grinding operation, and the declared demand then targets that mill’s own ground tonnage directly (cement for a lone cement mill, raw meal for a lone raw material mill). If both mills are present with no kiln line, the cement mill takes priority as the demand target and the raw material mill stays idle. A mill left present but unconnected alongside a kiln line (e.g. a raw material mill next to a full kiln line) likewise stays idle, since nothing requires or rewards running it.

Rolling horizon#

The cement plant supports the same production guidance modes as the steel plant. The forecaster accepts generic or unit-specific forecast columns:

  • clinker_demand or <unit_id>_clinker_demand - per-timestep minimum production (clinker, or a standalone mill’s ground tonnage)

  • normalized_load_profile or <unit_id>_normalized_load_profile - profile-guided production

  • electricity_price_flex or <unit_id>_electricity_price_flex - price signal for the electricity_price_signal measure

  • thermal_storage_schedule or <unit_id>_thermal_storage_schedule - schedule of a long-term thermal storage

  • <component>_availability or <unit_id>_<component>_availability - availability of the preheater, calciner or kiln (the mills do not take an availability profile)

Across rolling-horizon windows the plant carries thermal storage fill levels and component on/off states, and tracks the clinker (or standalone mill output) still to be produced.

Example Workflow#

  1. Instantiate the CementPlant agent with the stages of the kiln line it should contain (or just a mill, for a standalone grinding operation).

  2. Define the production demand, the firing mode of each stage and the flexibility measure.

  3. Run the optimization to generate bids for the electricity market.

Residential Agent: Building#

The Residential Agent models buildings containing technologies like heat pumps, electric vehicles (EVs), and thermal storage. These components allow the building to participate in the electricity market as both a consumer and prosumer.

Attributes#

  • Technology: Components such as heat pumps, boilers, thermal storage, and EV charging.

  • Node: Connection to the electrical grid.

  • Bidding Strategy: Example: NaiveDABuildingStrategy.

  • Objective: Optimization target, such as minimizing energy expenses.

  • Flexibility Measure: Load-shifting to adjust energy usage based on market conditions.

Components#

  • Heat Pump: Provides heating/cooling and interacts with thermal storage.

  • EV Charging: Manages EV battery charging based on availability periods and electricity prices.

  • Thermal Storage: Buffers thermal energy for flexible heating/cooling operations.

Example Workflow#

  1. Create a Building agent with components such as a heat pump and thermal storage.

  2. Define objectives like minimizing electricity usage.

  3. Execute optimization to determine the best dispatch plan based on market prices.

Strategies for Bidding#

Several naive bidding strategies are implemented for managing how agents participate in electricity markets. These strategies define how energy bids are created for different agent types.

  • DsmEnergyOptimizationStrategy: Optimizes steel plant operations and generates bids based on marginal costs.

  • NaiveDABuildingStrategy: Manages the bidding process for residential agents, calculating bids based on optimal energy use and load-shifting.

  • Redispatch Strategies: Adjust operations based on redispatch market signals, focusing on reducing operational costs or maximizing flexibility.