Hi Raymond,
I understand you need to add dispatchable loads such as battery storage and wind, into MATPOWER. It usually involves representing these resources as a combination of generators, loads, and possibly storage devices.
You can model these systems by integrating appropriate data into MATPOWER’s format.
- Battery Storage
It is typically modeled as a generator with a certain energy limit, where the energy input/output can be controlled based on the charging or discharging cycle.
Steps to add battery storage (Modeling as a Generator):
- Active Power Generation (P): The battery's power output can be treated as a negative load when discharging, and as a positive generator when charging.
- Reactive Power Generation (Q): You can either set the reactive power to zero or model it according to the battery’s capability.
- Energy Limits: To account for the battery's state of charge (SOC), you need to ensure the generator has energy limits, typically specified in terms of energy stored in kWh, which is a constraint during optimization.
- Charge/Discharge Power Limits: These are the maximum and minimum power values for charging and discharging.
Here’s a pseudo code for your reference:
3, 0, 0, 30, -30, 1.0, 100, 1, 50, -50;
battery_energy_limit = 100;
3, battery_energy_limit, 0, 50, -50;
2. Wind Generation
Wind generation is typically modeled as a stochastic or probabilistic generator since its output is variable and depends on wind speeds, which are not controllable.
Steps to add wind generation:
- Wind turbines can be modeled as generators with a variable output based on a time-varying or probabilistic distribution. You may either use a fixed power generation model or integrate wind speed as an input.
- Power Limits: Wind generation usually has a maximum (Pmax) based on the installed capacity, and the output varies with wind speed, which may be represented as a probabilistic curve or modeled with some uncertainty.
- Stochastic Models: If you want a more advanced representation, you could integrate external data or stochastic methods to model the variability of wind generation.Here’s the pseudo code for your reference:
5, 0, 0, 100, 0, 1.0, 100, 1, 50, 0;
Note: In MATPOWER, there is no built-in mechanism for time-varying data or probabilistic generation directly. However, you can modify the power output of the wind and battery storage resources as part of a time-series simulation or perform dynamic simulations.
For example:
- Battery Storage: The power output can be set as a time-varying input, depending on the state of charge (SOC) and the load demand.
- Wind Power: The wind power output could be defined based on hourly or seasonally varying inputs, which you can modify manually or fetch from an external time-series dataset.
Example for your reference:
3, 0, 0, 50, -50, 1.0, 100, 1, 50, -50;
5, 0, 0, 100, 0, 1.0, 100, 1, 50, 0;
Hope it helps!