- The energy system includes photovoltaic power stations, wind power stations, generators, batteries, and residential buildings.
- The goal is to minimize the total costs of the energy system and the gap between power supply and residential load.
- Electricity price, residential load, photovoltaic, and wind power generation are \\param{price_{}}, \\param{load_{}}, \\param{pv_{}}, and \\param{wind_{}}, each with 24 time steps representing hourly data.
- Battery state of charge is \\param{soc_{}}, with a total battery capacity of 500. Power of generators 1, 2, and 3 is \\param{pg1_{}}, \\param{pg2_{}}, and \\param{pg3_{}}, respectively. The initial values at time step 0 are provided, and the system will update these values at each subsequent time step based on decisions made.
- \\var{Apv_{}}, \\var{Asoc_{}}, \\var{Ag1_{}}, \\var{Ag2_{}}, and \\var{Ag3_{}} are adjustment factors ranging from -1 to 1, changing according to the value from the previous time step and affecting system parameters such as power generation and battery capacity.
- Battery charging and discharging result in a capacity change of 100 * \\var{Asoc_{t}}.
- Generators 1, 2, and 3 power change by 100 * \\var{Ag1_{t}}, 100 * \\var{Ag2_{t}}, and 200 * \\var{Ag3_{t}}.
- \\param{soc_{t}} is calculated as (0.18 * \\var{Asoc_{t}} + \\param{soc_{t-1}}), with a maximum of 0.8 and a minimum of 0.2.
- \\param{pg1_{t}} is calculated as (100 * \\var{Ag1_{t}} + \\param{pg1_{t-1}}), with a maximum of 150 and a minimum of 10.
- \\param{pg2_{t}} is calculated as (100 * \\var{Ag2_{t}} + \\param{pg2_{t-1}}), with a maximum of 375 and a minimum of 50.
- \\param{pg3_{t}} is calculated as (200 * \\var{Ag3_{t}} + \\param{pg3_{t-1}}), with a maximum of 500 and a minimum of 100.
- Photovoltaic power is calculated as (\\param{pv_{t}} * (1 + \\var{Apv})).
- Total power supply at each time step t = \\param{soc_{t}} + \\param{pg1_{t}} + \\param{pg2_{t}} + \\param{pg3_{t}}+ (photovoltaic power at time step t) + \\param{wind_{t}}.
- Excess energy = total power supply - \\param{load_{t}}, and no less than 0.
- Shortage energy = \\param{load_{t}} - total power supply, and no less than 0.
- The total cost structure includes the following:
- Battery cost = \\var{Asoc_{t}} + 0.1 * \\param{soc_{t}};
- Gen1 cost = 0.0034 * \\param{pg1_{t}}^2 + 3 * \\param{pg1_{t}} + 30;
- Gen2 cost = 0.001 * \\param{pg2_{t}}^2 + 10 * \\param{pg2_{t}} + 40;
- Gen3 cost = 0.001 * \\param{pg3_{t}}^2 + 15 * \\param{pg3_{t}} + 70;
- Renewable energy cost = 0.01 * (\\param{pv_{t}} + \\param{wind_{t}});
- Sales revenue = 0.5 * \\param{price_{t}} * (excess energy);
- Purchase cost = \\param{price_{t}} * (shortage energy);
- Excess penalty = max(0, (excess energy - 100) * 50);
- Shortage penalty = max(0, (shortage energy - 100) * 50).
- The cost of each power generation module should be considered when supplying power, usually starting the subsequent generator when the power of the previous generator is insufficient to meet the load.
- Minimize transactions exceeding the power grid transaction limit to avoid power grid fluctuations affecting the stability of residential electricity consumption.
- Decisions made at each time step will update \\param{soc_{}}, \\param{pg1_{}}, \\param{pg2_{}}, and \\param{pg3_{}}, and these updated values will serve as the starting point for calculations in the next time step.
