From fae4f7cc7c774d79075d51b07fdc00c5540e299b Mon Sep 17 00:00:00 2001 From: Xinhe Chen Date: Tue, 14 Feb 2023 13:48:21 -0500 Subject: [PATCH 1/5] add_wind_pem_docs --- .../apps/grid_integration/Bidder.rst | 145 ++++++++++++++++++ .../apps/grid_integration/Tracker.rst | 50 ++++++ 2 files changed, 195 insertions(+) diff --git a/docs/reference_guides/apps/grid_integration/Bidder.rst b/docs/reference_guides/apps/grid_integration/Bidder.rst index 993c51f9d9..3e40fef32c 100644 --- a/docs/reference_guides/apps/grid_integration/Bidder.rst +++ b/docs/reference_guides/apps/grid_integration/Bidder.rst @@ -13,6 +13,151 @@ uncertain price scenario has a corresponding power output. As shown in the figur each of these uncertain price and power output pairs formulates a segment in the bidding curves. +Here we present a stochastic bidding model for a renewable integated energy system (Wind generator + PEM). + +Day-Ahead Bidding Problem for Wind + PEM IES +--------------------------------------------- +The objective function is the expected profit, which equals the revenue substracts the cost. +We want to consider the revenue from the electricity market and the hydrogen market. + +.. math:: \max \quad \sum_{s \in S, t \in T^{DA}}\omega_{s}[{(\pi_{t,s}^{DA}P_{t,s}^{DA} + \pi_{t,s}^{RT}(P_{t,s}^{RT}-P_{t,s}^{DA}))\Delta t + Pr^{H2}f_{t,s}^{H2}- c_{t,s}}] - C_{fix} + +s.t. + +.. math:: P_{t,s}^{DA} \leq P_{t,s}^{RT} \quad \forall t, s \quad \quad (1) +.. math:: P_{t,s} = P^{RT}_{t,s} \quad \forall t, s \quad \quad (2) +.. math:: (\pi_{t,s'}^{DA} - \pi_{t,s}^{DA})(P_{t,s'}^{DA} - P_{t,s}^{DA}) \geq 0 \quad \forall s \in S, \forall s' \in S \backslash s, \forall t \in T^{DA} \quad \quad (3) +.. math:: P_{t,s}^{DA} \leq P_{t,s}^{wind} \quad \forall t, s \quad \quad (4) +.. math:: P_{t,s}^{RT} \leq P_{t,s}^{wind} \quad \forall t, s \quad \quad (5) +.. math:: P_{t,s}^{wind} \leq f_{t} P_{max}^{wind} \quad \forall t \quad \quad (6) +.. math:: P_{t,s}^{DA} + P_{t,s}^{PEM} \leq P_{max}^{wind} \quad \forall t, s \quad \quad (7) +.. math:: P_{t,s}^{PEM} \leq P_{max}^{PEM} \quad \forall t, s \quad \quad (8) +.. math:: f_{t,s}^{H2} = P_{t,s}^{PEM}C_{H2}\Delta t \quad \forall t, s \quad \quad (9) +.. math:: c_{t,s} = C^{op} P_{t,s}^{PEM}\quad \forall t, s \quad \quad (10) +.. math:: C_{fix} = C_{fix}^{wind}P_{max}^{wind} + C_{fix}^{PEM}P_{max}^{PEM} \quad \quad (11) + +Equation (1) requires the day-ahead offering power is less or equal to the real-time offering power +in order to avoid underbidding. Equation (2) states that the RT offering power is the same as the +IES power output to the grid. In the bidding mode, the market rules require the offering power is +non-decreasing (convex) with its marginal cost in an energy bid. This rule is represented by equation (3). +Equation (4) to equation (9) are process model constraints. Equation (10) calculates the operation costs for IES +and equation (11) calculate the fixed cost for IES. + +**Parameters** + +:math:`\omega_{s}`: Frequency of each scenario. + +:math:`\pi^{DA}_{t,s}`: Day-ahead LMP forecasting from forecaster at hour t for scenario s, \$/MWh. + +:math:`\pi^{RT}_{t,s}`: Real-time LMP forecasting from forecaster at hour t for scenario s, \$/MWh. + +:math:`Pr^{H2}`: Market price for hydrogen. \$/kg. + +:math:`P_{max}^{PEM}`: PEM max capacity, MW. + +:math:`f_{t}`: Wind power generation capacity factor at hour t MW/MW. + +:math:`P_{max}^{wind}`: Wind generator max capacity, MW. + +:math:`C^{op}`: PEM operation cost coefficient, \$/MW. + +:math:`C_{fix}^{wind}`: Wind generator fixed cost coefficient, \$/MW. + +:math:`C_{fix}^{PEM}`: PEM fixed cost coefficient, \$/MW. + +:math:`C_{H2}`: Electricity to hydrogen conversion rate. kg/MWh. + + +**Variables** + +:math:`P_{t,s}`: IES power output to the grid at hour t in scenario s, MW. + +:math:`P_{t,s}^{DA}`: Day-ahead offering power at hour t in scenario s, MW. + +:math:`P_{t,s}^{RT}`: Real-time offering power at hour t in scenario s, MW. + +:math:`P_{t,s}^{wind}`: Wind power generation at hour t in scenario s, MW. + +:math:`P_{t,s}^{PEM}`: Power delivered to PEM at hour t in scenario 0, MW. + +:math:`f_{t,s}^{H2}`: Hydrogen production mass at hour t in scenario s, kg. + +:math:`c_{t,s}`: IES operational cost at hour t in scenario s, \$. + + + + +Real-time Bidding Problem for Wind+PEM IES +------------------------------------------ + +.. math:: \max \quad \sum_{t \in T_{DA}}\hat{\pi}_{t}^{DA}\hat{P}_{t}^{DA}\Delta t + \sum_{t\in T_{RT}, s\in S}\omega_{s}[\pi_{t,s}^{RT}(P_{t,s}^{RT} -\hat{P}_{t}^{DA})\Delta t + Pr^{H2}f_{t,s}^{H2} - c_{t,s} - \omega_{t}^{RT} P_{t,s}^{underbid}] - C_{fix} + +s.t. + +.. math:: \hat{P}^{DA}_{t} \leq P_{t,s}^{RT} + P_{t,s}^{underbid} \quad \forall t, s \quad \quad (12) +.. math:: P_{t,s}^{RT} = P_{t,s} \quad \forall t, s \quad \quad (13) +.. math:: (\pi_{t,s'}^{RT} - \pi_{t,s}^{RT})(P_{t,s'}^{RT} - P_{t,s}^{RT}) \geq 0 \quad \forall s \in S, \forall s' \in S \backslash s, \forall t \in T^{RT} \quad \quad (14) +.. math:: P_{t,s}^{RT} \leq P_{t,s}^{wind} \quad \forall t, s \quad \quad (15) +.. math:: P_{t,s}^{wind} \leq f_{t}P_{wind}^{max} \quad \forall t \quad \quad (16) +.. math:: P_{t,s}^{RT} + P_{t,s}^{PEM} \leq P_{t,s}^{wind} \quad \forall t, s \quad \quad (17) +.. math:: P_{t,s}^{PEM} \leq P_{max}^{PEM} \quad \forall t, s \quad \quad (18) +.. math:: f_{t,s}^{H2} = P_{t,s}^{PEM}C_{H2}\Delta t \quad \forall t, s \quad \quad (19) +.. math:: c_{t,s} = C^{op} P_{t,s}^{PEM}\quad \forall t, s \quad \quad (20) +.. math:: C_{fix} = C_{fix}^{wind}P_{max}^{wind} + C_{fix}^{PEM}P_{max}^{PEM} \quad \quad (21) + +Before the actual operations, electricity markets allow the resources to submit real-time energy bids to +correct deviations from the day-ahead market. At this time, both day-ahead LMP :math:`\hat{\pi}_{t}^{DA}` +and day-ahead dispatch level :math:`\hat{P}_{t}^{DA}` have been realized as a result of the +day-ahead market clearing. In real-time market, due to the forecaster error and some other reasons, the +real-time offering power may not realize promises that generator owner makes in the day-ahead market. We +call this 'underbidding' and underbiding energy will be penaltized by the ISO. To prevent the underbidding +and loss of revenue, we add a relaxed lower bound for the real-time offering power with a slack +variable :math:`P_{t,s}^{underbid}` for underbidding in equation (12) and penalized in the objective function. + +**Parameters** + +:math:`\omega_{s}`: Frequency of each scenario. + +:math:`\omega_{t}^{RT}`: Penalty for underbidding at real-time at hour t, \$/MWh. + +:math:`\hat{\pi}_{t}^{DA}`: Realized day-ahead energy LMP signals at hour t, \$/MWh. + +:math:`\hat{P}_{t}^{DA}`: Realized day-ahead dispatch level at hour t, \$/MWH. + +:math:`\pi^{RT}_{t,s}`: Real-time LMP forecasting from forecaster at hour t for scenario s, \$/MWh. + +:math:`Pr^{H2}`: Market price for hydrogen, \$/kg. + +:math:`P^{PEM}_{max}`: PEM max capacity, MW. + +:math:`f_{t}`: Wind power generation capacity factor at hour t MW/MW. + +:math:`P_{max}^{wind}`: Wind generator max capacity, MW. + +:math:`C^{op}`: PEM operation cost coefficient, \$/MW. + +:math:`C_{fix}^{wind}`: Wind generator fixed cost coefficient, \$/MW. + +:math:`C_{fix}^{PEM}`: PEM fixed cost coefficient, \$/MW. + +:math:`C_{H2}`: Electricity to hydrogen conversion rate. kg/MWh. + +**Variables** + +:math:`P_{t,s}`: IES power output to the grid at hour t in scenario s, MW. + +:math:`P_{t,s}^{underbid}`: The amount of underbidding power in real-time at hour t in scenario s, MW. + +:math:`P_{t,s}^{RT}`: Real-time offering power at hour t in scenario s, MW. + +:math:`P_{t,s}^{wind}`: Wind power generation at hour t in scenario s, MW. + +:math:`P_{t,s}^{PEM}`: Power delivered to PEM at hour t in scenario s, MW. + +:math:`f_{t,s}^{H2}`: Hydrogen production mass at hour t in scenario s, kg. + +:math:`c_{t,s}`: IES operational cost at hour t in scenario s, \$. + .. |example_bid| image:: images/example_bid.png :width: 800 :alt: Alternative text diff --git a/docs/reference_guides/apps/grid_integration/Tracker.rst b/docs/reference_guides/apps/grid_integration/Tracker.rst index 85479420c8..947be1b4d4 100644 --- a/docs/reference_guides/apps/grid_integration/Tracker.rst +++ b/docs/reference_guides/apps/grid_integration/Tracker.rst @@ -9,6 +9,56 @@ integrated energy system which consists of a thermal generator and an energy sto The figure shows that to track the dispatch (load) the energy system can optimally use power output from charging and discharging cycle. +Tracking Problem for Wind+PEM IES +---------------------------------- +Here we present a tracking problem example for wind + PEM IES. + +.. math:: \min \quad \sum_{t \in T^{RT}} (c_{t,0} + \omega_{t}(P^{+}_{t,0} + P^{-}_{t,0})) - C_{fix} + +s.t. + +.. math:: P_{t,0} + P_{t,0}^{-} = \hat{P}^{RT}_{t} + P^{+}_{t,0} \quad \forall t + +.. math:: P_{t,0} + \hat{P}_{t,0}^{PEM} \leq \hat{P}_{wind}^{RT} \quad \forall t + +.. math:: P_{t,0}^{PEM} \leq P_{max}^{PEM} \quad \forall t + +.. math:: f_{t,0}^{H2} = P_{t,0}^{PEM}C_{H2}\Delta t \quad \forall t + +.. math:: c_{t,0} = C^{op} P_{t,0}^{PEM}\quad \forall t + +.. math:: C_{fix} = C_{fix}^{wind}P_{max}^{wind} + C_{fix}^{PEM}P_{max}^{PEM} + +**Parameters** + +:math:`\hat{P}^{RT}_{t}`: Realized real-time dispatch level at hour t, MW. + +:math:`\hat{P}_{wind}^{RT}`: Realized wind generation power at hour t, MW. + +:math:`P_{max}^{PEM}`: PEM max capacity, MW. + +:math:`C^{op}`: PEM operation cost coefficient, \$/MW. + +:math:`C_{fix}^{wind}`: Wind generator fixed cost coefficient, \$/MW. + +:math:`C_{fix}^{PEM}`: PEM fixed cost coefficient, \$/MW. + +:math:`C_{H2}`: Electricity to hydrogen conversion rate. kg/MWh. + +**Variables** + +:math:`P_{t,0}`: IES power output to the grid at hour t in scenario 0, MW. + +:math:`P_{t,0}^{PEM}`: Power delivered to PEM at hour t in scenario 0, MW. + +:math:`P_{t,0}^{+}`: Power over-delivered by the IES to the grid at hour t in scenario 0, MW. + +:math:`P_{t,0}^{-}`: Power under-delivered by the IES to the grid at hour t in scenario 0, MW. + +:math:`f_{t,0}^{H2}`: Hydrogen production mass at hour t in scenario 0, kg. + +:math:`c_{t,0}`: IES operational cost at hour t in scenario 0, \$ + .. |tracking_example| image:: images/tracking_example.png :width: 1200 :alt: Alternative text From bca582e10c6b97a98431074957d0951d2faaebdd Mon Sep 17 00:00:00 2001 From: Xinhe Chen Date: Tue, 14 Feb 2023 15:56:28 -0500 Subject: [PATCH 2/5] change_max_depth --- docs/reference_guides/apps/grid_integration/Bidder.rst | 4 ++-- docs/reference_guides/apps/grid_integration/Tracker.rst | 3 +++ docs/reference_guides/apps/grid_integration/index.rst | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/reference_guides/apps/grid_integration/Bidder.rst b/docs/reference_guides/apps/grid_integration/Bidder.rst index 3e40fef32c..b971a3f169 100644 --- a/docs/reference_guides/apps/grid_integration/Bidder.rst +++ b/docs/reference_guides/apps/grid_integration/Bidder.rst @@ -15,8 +15,10 @@ bidding curves. Here we present a stochastic bidding model for a renewable integated energy system (Wind generator + PEM). + Day-Ahead Bidding Problem for Wind + PEM IES --------------------------------------------- + The objective function is the expected profit, which equals the revenue substracts the cost. We want to consider the revenue from the electricity market and the hydrogen market. @@ -85,8 +87,6 @@ and equation (11) calculate the fixed cost for IES. :math:`c_{t,s}`: IES operational cost at hour t in scenario s, \$. - - Real-time Bidding Problem for Wind+PEM IES ------------------------------------------ diff --git a/docs/reference_guides/apps/grid_integration/Tracker.rst b/docs/reference_guides/apps/grid_integration/Tracker.rst index 947be1b4d4..42f0e5aaf3 100644 --- a/docs/reference_guides/apps/grid_integration/Tracker.rst +++ b/docs/reference_guides/apps/grid_integration/Tracker.rst @@ -9,10 +9,13 @@ integrated energy system which consists of a thermal generator and an energy sto The figure shows that to track the dispatch (load) the energy system can optimally use power output from charging and discharging cycle. + Tracking Problem for Wind+PEM IES ---------------------------------- + Here we present a tracking problem example for wind + PEM IES. + .. math:: \min \quad \sum_{t \in T^{RT}} (c_{t,0} + \omega_{t}(P^{+}_{t,0} + P^{-}_{t,0})) - C_{fix} s.t. diff --git a/docs/reference_guides/apps/grid_integration/index.rst b/docs/reference_guides/apps/grid_integration/index.rst index 5f8d6a49da..ec0db10cb7 100644 --- a/docs/reference_guides/apps/grid_integration/index.rst +++ b/docs/reference_guides/apps/grid_integration/index.rst @@ -11,7 +11,7 @@ the operational (hours to year timescale) interactions between energy systems an wholesale electricity markets. For more information, please look at the introduction section. .. toctree:: - :maxdepth: 2 + :maxdepth: 1 Introduction Implementation From f3a20640c49306a7efe9a689db4c4825a9ccd423 Mon Sep 17 00:00:00 2001 From: Xinhe Chen Date: Tue, 14 Feb 2023 16:58:19 -0500 Subject: [PATCH 3/5] change_variable_name --- .../apps/grid_integration/Bidder.rst | 20 +++++++++---------- .../apps/grid_integration/Tracker.rst | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/reference_guides/apps/grid_integration/Bidder.rst b/docs/reference_guides/apps/grid_integration/Bidder.rst index b971a3f169..ae056e9d1a 100644 --- a/docs/reference_guides/apps/grid_integration/Bidder.rst +++ b/docs/reference_guides/apps/grid_integration/Bidder.rst @@ -22,7 +22,7 @@ Day-Ahead Bidding Problem for Wind + PEM IES The objective function is the expected profit, which equals the revenue substracts the cost. We want to consider the revenue from the electricity market and the hydrogen market. -.. math:: \max \quad \sum_{s \in S, t \in T^{DA}}\omega_{s}[{(\pi_{t,s}^{DA}P_{t,s}^{DA} + \pi_{t,s}^{RT}(P_{t,s}^{RT}-P_{t,s}^{DA}))\Delta t + Pr^{H2}f_{t,s}^{H2}- c_{t,s}}] - C_{fix} +.. math:: \max \quad \sum_{s \in S, t \in T^{DA}}\omega_{s}[{(\pi_{t,s}^{DA}P_{t,s}^{DA} + \pi_{t,s}^{RT}(P_{t,s}^{RT}-P_{t,s}^{DA}))\Delta t + Pr^{H}m_{t,s}^{H}- c_{t,s}}] - C_{fix} s.t. @@ -34,7 +34,7 @@ s.t. .. math:: P_{t,s}^{wind} \leq f_{t} P_{max}^{wind} \quad \forall t \quad \quad (6) .. math:: P_{t,s}^{DA} + P_{t,s}^{PEM} \leq P_{max}^{wind} \quad \forall t, s \quad \quad (7) .. math:: P_{t,s}^{PEM} \leq P_{max}^{PEM} \quad \forall t, s \quad \quad (8) -.. math:: f_{t,s}^{H2} = P_{t,s}^{PEM}C_{H2}\Delta t \quad \forall t, s \quad \quad (9) +.. math:: m_{t,s}^{H} = P_{t,s}^{PEM}C_{H}\Delta t \quad \forall t, s \quad \quad (9) .. math:: c_{t,s} = C^{op} P_{t,s}^{PEM}\quad \forall t, s \quad \quad (10) .. math:: C_{fix} = C_{fix}^{wind}P_{max}^{wind} + C_{fix}^{PEM}P_{max}^{PEM} \quad \quad (11) @@ -53,7 +53,7 @@ and equation (11) calculate the fixed cost for IES. :math:`\pi^{RT}_{t,s}`: Real-time LMP forecasting from forecaster at hour t for scenario s, \$/MWh. -:math:`Pr^{H2}`: Market price for hydrogen. \$/kg. +:math:`Pr^{H}`: Market price for hydrogen. \$/kg. :math:`P_{max}^{PEM}`: PEM max capacity, MW. @@ -67,7 +67,7 @@ and equation (11) calculate the fixed cost for IES. :math:`C_{fix}^{PEM}`: PEM fixed cost coefficient, \$/MW. -:math:`C_{H2}`: Electricity to hydrogen conversion rate. kg/MWh. +:math:`C_{H}`: Electricity to hydrogen conversion rate. kg/MWh. **Variables** @@ -82,7 +82,7 @@ and equation (11) calculate the fixed cost for IES. :math:`P_{t,s}^{PEM}`: Power delivered to PEM at hour t in scenario 0, MW. -:math:`f_{t,s}^{H2}`: Hydrogen production mass at hour t in scenario s, kg. +:math:`m_{t,s}^{H}`: Hydrogen production mass at hour t in scenario s, kg. :math:`c_{t,s}`: IES operational cost at hour t in scenario s, \$. @@ -90,7 +90,7 @@ and equation (11) calculate the fixed cost for IES. Real-time Bidding Problem for Wind+PEM IES ------------------------------------------ -.. math:: \max \quad \sum_{t \in T_{DA}}\hat{\pi}_{t}^{DA}\hat{P}_{t}^{DA}\Delta t + \sum_{t\in T_{RT}, s\in S}\omega_{s}[\pi_{t,s}^{RT}(P_{t,s}^{RT} -\hat{P}_{t}^{DA})\Delta t + Pr^{H2}f_{t,s}^{H2} - c_{t,s} - \omega_{t}^{RT} P_{t,s}^{underbid}] - C_{fix} +.. math:: \max \quad \sum_{t \in T_{DA}}\hat{\pi}_{t}^{DA}\hat{P}_{t}^{DA}\Delta t + \sum_{t\in T_{RT}, s\in S}\omega_{s}[\pi_{t,s}^{RT}(P_{t,s}^{RT} -\hat{P}_{t}^{DA})\Delta t + Pr^{H}m_{t,s}^{H} - c_{t,s} - \omega_{t}^{RT} P_{t,s}^{underbid}] - C_{fix} s.t. @@ -101,7 +101,7 @@ s.t. .. math:: P_{t,s}^{wind} \leq f_{t}P_{wind}^{max} \quad \forall t \quad \quad (16) .. math:: P_{t,s}^{RT} + P_{t,s}^{PEM} \leq P_{t,s}^{wind} \quad \forall t, s \quad \quad (17) .. math:: P_{t,s}^{PEM} \leq P_{max}^{PEM} \quad \forall t, s \quad \quad (18) -.. math:: f_{t,s}^{H2} = P_{t,s}^{PEM}C_{H2}\Delta t \quad \forall t, s \quad \quad (19) +.. math:: m_{t,s}^{H} = P_{t,s}^{PEM}C_{H}\Delta t \quad \forall t, s \quad \quad (19) .. math:: c_{t,s} = C^{op} P_{t,s}^{PEM}\quad \forall t, s \quad \quad (20) .. math:: C_{fix} = C_{fix}^{wind}P_{max}^{wind} + C_{fix}^{PEM}P_{max}^{PEM} \quad \quad (21) @@ -126,7 +126,7 @@ variable :math:`P_{t,s}^{underbid}` for underbidding in equation (12) and penali :math:`\pi^{RT}_{t,s}`: Real-time LMP forecasting from forecaster at hour t for scenario s, \$/MWh. -:math:`Pr^{H2}`: Market price for hydrogen, \$/kg. +:math:`Pr^{H}`: Market price for hydrogen, \$/kg. :math:`P^{PEM}_{max}`: PEM max capacity, MW. @@ -140,7 +140,7 @@ variable :math:`P_{t,s}^{underbid}` for underbidding in equation (12) and penali :math:`C_{fix}^{PEM}`: PEM fixed cost coefficient, \$/MW. -:math:`C_{H2}`: Electricity to hydrogen conversion rate. kg/MWh. +:math:`C_{H}`: Electricity to hydrogen conversion rate. kg/MWh. **Variables** @@ -154,7 +154,7 @@ variable :math:`P_{t,s}^{underbid}` for underbidding in equation (12) and penali :math:`P_{t,s}^{PEM}`: Power delivered to PEM at hour t in scenario s, MW. -:math:`f_{t,s}^{H2}`: Hydrogen production mass at hour t in scenario s, kg. +:math:`m_{t,s}^{H}`: Hydrogen production mass at hour t in scenario s, kg. :math:`c_{t,s}`: IES operational cost at hour t in scenario s, \$. diff --git a/docs/reference_guides/apps/grid_integration/Tracker.rst b/docs/reference_guides/apps/grid_integration/Tracker.rst index 42f0e5aaf3..59815a3257 100644 --- a/docs/reference_guides/apps/grid_integration/Tracker.rst +++ b/docs/reference_guides/apps/grid_integration/Tracker.rst @@ -26,7 +26,7 @@ s.t. .. math:: P_{t,0}^{PEM} \leq P_{max}^{PEM} \quad \forall t -.. math:: f_{t,0}^{H2} = P_{t,0}^{PEM}C_{H2}\Delta t \quad \forall t +.. math:: m_{t,0}^{H} = P_{t,0}^{PEM}C_{H}\Delta t \quad \forall t .. math:: c_{t,0} = C^{op} P_{t,0}^{PEM}\quad \forall t @@ -46,7 +46,7 @@ s.t. :math:`C_{fix}^{PEM}`: PEM fixed cost coefficient, \$/MW. -:math:`C_{H2}`: Electricity to hydrogen conversion rate. kg/MWh. +:math:`C_{H}`: Electricity to hydrogen conversion rate. kg/MWh. **Variables** @@ -58,7 +58,7 @@ s.t. :math:`P_{t,0}^{-}`: Power under-delivered by the IES to the grid at hour t in scenario 0, MW. -:math:`f_{t,0}^{H2}`: Hydrogen production mass at hour t in scenario 0, kg. +:math:`m_{t,0}^{H}`: Hydrogen production mass at hour t in scenario 0, kg. :math:`c_{t,0}`: IES operational cost at hour t in scenario 0, \$ From 1da769f02cde4f5d1a4666c3b49c1b761981d6ca Mon Sep 17 00:00:00 2001 From: Xinhe Chen Date: Tue, 14 Feb 2023 17:21:02 -0500 Subject: [PATCH 4/5] fix_typos --- .../apps/grid_integration/Bidder.rst | 16 ++++++++-------- .../apps/grid_integration/Tracker.rst | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/reference_guides/apps/grid_integration/Bidder.rst b/docs/reference_guides/apps/grid_integration/Bidder.rst index ae056e9d1a..0033b53f64 100644 --- a/docs/reference_guides/apps/grid_integration/Bidder.rst +++ b/docs/reference_guides/apps/grid_integration/Bidder.rst @@ -31,7 +31,7 @@ s.t. .. math:: (\pi_{t,s'}^{DA} - \pi_{t,s}^{DA})(P_{t,s'}^{DA} - P_{t,s}^{DA}) \geq 0 \quad \forall s \in S, \forall s' \in S \backslash s, \forall t \in T^{DA} \quad \quad (3) .. math:: P_{t,s}^{DA} \leq P_{t,s}^{wind} \quad \forall t, s \quad \quad (4) .. math:: P_{t,s}^{RT} \leq P_{t,s}^{wind} \quad \forall t, s \quad \quad (5) -.. math:: P_{t,s}^{wind} \leq f_{t} P_{max}^{wind} \quad \forall t \quad \quad (6) +.. math:: P_{t,s}^{wind} \leq f_{t} P_{max}^{wind} \quad \forall t, s \quad \quad (6) .. math:: P_{t,s}^{DA} + P_{t,s}^{PEM} \leq P_{max}^{wind} \quad \forall t, s \quad \quad (7) .. math:: P_{t,s}^{PEM} \leq P_{max}^{PEM} \quad \forall t, s \quad \quad (8) .. math:: m_{t,s}^{H} = P_{t,s}^{PEM}C_{H}\Delta t \quad \forall t, s \quad \quad (9) @@ -53,11 +53,11 @@ and equation (11) calculate the fixed cost for IES. :math:`\pi^{RT}_{t,s}`: Real-time LMP forecasting from forecaster at hour t for scenario s, \$/MWh. -:math:`Pr^{H}`: Market price for hydrogen. \$/kg. +:math:`Pr^{H}`: Market price for hydrogen, \$/kg. :math:`P_{max}^{PEM}`: PEM max capacity, MW. -:math:`f_{t}`: Wind power generation capacity factor at hour t MW/MW. +:math:`f_{t}`: Wind power generation capacity factor at hour t, MW/MW. :math:`P_{max}^{wind}`: Wind generator max capacity, MW. @@ -67,7 +67,7 @@ and equation (11) calculate the fixed cost for IES. :math:`C_{fix}^{PEM}`: PEM fixed cost coefficient, \$/MW. -:math:`C_{H}`: Electricity to hydrogen conversion rate. kg/MWh. +:math:`C_{H}`: Electricity to hydrogen conversion rate, kg/MWh. **Variables** @@ -80,7 +80,7 @@ and equation (11) calculate the fixed cost for IES. :math:`P_{t,s}^{wind}`: Wind power generation at hour t in scenario s, MW. -:math:`P_{t,s}^{PEM}`: Power delivered to PEM at hour t in scenario 0, MW. +:math:`P_{t,s}^{PEM}`: Power delivered to PEM at hour t in scenario s, MW. :math:`m_{t,s}^{H}`: Hydrogen production mass at hour t in scenario s, kg. @@ -98,7 +98,7 @@ s.t. .. math:: P_{t,s}^{RT} = P_{t,s} \quad \forall t, s \quad \quad (13) .. math:: (\pi_{t,s'}^{RT} - \pi_{t,s}^{RT})(P_{t,s'}^{RT} - P_{t,s}^{RT}) \geq 0 \quad \forall s \in S, \forall s' \in S \backslash s, \forall t \in T^{RT} \quad \quad (14) .. math:: P_{t,s}^{RT} \leq P_{t,s}^{wind} \quad \forall t, s \quad \quad (15) -.. math:: P_{t,s}^{wind} \leq f_{t}P_{wind}^{max} \quad \forall t \quad \quad (16) +.. math:: P_{t,s}^{wind} \leq f_{t}P_{wind}^{max} \quad \forall t, s \quad \quad (16) .. math:: P_{t,s}^{RT} + P_{t,s}^{PEM} \leq P_{t,s}^{wind} \quad \forall t, s \quad \quad (17) .. math:: P_{t,s}^{PEM} \leq P_{max}^{PEM} \quad \forall t, s \quad \quad (18) .. math:: m_{t,s}^{H} = P_{t,s}^{PEM}C_{H}\Delta t \quad \forall t, s \quad \quad (19) @@ -130,7 +130,7 @@ variable :math:`P_{t,s}^{underbid}` for underbidding in equation (12) and penali :math:`P^{PEM}_{max}`: PEM max capacity, MW. -:math:`f_{t}`: Wind power generation capacity factor at hour t MW/MW. +:math:`f_{t}`: Wind power generation capacity factor at hour t, MW/MW. :math:`P_{max}^{wind}`: Wind generator max capacity, MW. @@ -140,7 +140,7 @@ variable :math:`P_{t,s}^{underbid}` for underbidding in equation (12) and penali :math:`C_{fix}^{PEM}`: PEM fixed cost coefficient, \$/MW. -:math:`C_{H}`: Electricity to hydrogen conversion rate. kg/MWh. +:math:`C_{H}`: Electricity to hydrogen conversion rate, kg/MWh. **Variables** diff --git a/docs/reference_guides/apps/grid_integration/Tracker.rst b/docs/reference_guides/apps/grid_integration/Tracker.rst index 59815a3257..8e44d2a1cf 100644 --- a/docs/reference_guides/apps/grid_integration/Tracker.rst +++ b/docs/reference_guides/apps/grid_integration/Tracker.rst @@ -46,7 +46,7 @@ s.t. :math:`C_{fix}^{PEM}`: PEM fixed cost coefficient, \$/MW. -:math:`C_{H}`: Electricity to hydrogen conversion rate. kg/MWh. +:math:`C_{H}`: Electricity to hydrogen conversion rate, kg/MWh. **Variables** @@ -60,7 +60,7 @@ s.t. :math:`m_{t,0}^{H}`: Hydrogen production mass at hour t in scenario 0, kg. -:math:`c_{t,0}`: IES operational cost at hour t in scenario 0, \$ +:math:`c_{t,0}`: IES operational cost at hour t in scenario 0, \$. .. |tracking_example| image:: images/tracking_example.png :width: 1200 From b856234db663961a35f8812ab6643f38db00b8cb Mon Sep 17 00:00:00 2001 From: Xinhe Chen Date: Tue, 14 Feb 2023 17:27:34 -0500 Subject: [PATCH 5/5] add_dispathes_link --- docs/reference_guides/apps/grid_integration/Bidder.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/reference_guides/apps/grid_integration/Bidder.rst b/docs/reference_guides/apps/grid_integration/Bidder.rst index 0033b53f64..f4c6a5b7ac 100644 --- a/docs/reference_guides/apps/grid_integration/Bidder.rst +++ b/docs/reference_guides/apps/grid_integration/Bidder.rst @@ -158,6 +158,10 @@ variable :math:`P_{t,s}^{underbid}` for underbidding in equation (12) and penali :math:`c_{t,s}`: IES operational cost at hour t in scenario s, \$. +Some wind, battery, PEM models and the double-loop simulation example can be found in Dispatches GitHub repository. + +https://dispatches.readthedocs.io/en/main/models/renewables/index.html + .. |example_bid| image:: images/example_bid.png :width: 800 :alt: Alternative text