Eq. (25), pp. 38–39 — no-storage optimum Q*_F(K=0) and the marginal value of storage there
ProvedOffGridStorage.TechChoice.eq_25_marginal_storageenergy-storagefirst-order-conditionp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1threshold
Under the standing assumptions, let . Then:
- maximizes the no-storage full-discharge profit: for every .
- For every and every , the closed form (20) (times ) has partial derivative in
- At this derivative equals
The sign of the last expression decides whether adding a first unit of storage to the best no-storage plan pays; setting it to zero yields the threshold .
Formalization Note The paper's derivatives are per period; here the closed form carries the factor , so each derivative carries it too. The derivative in item 2 is a two-sided derivative of the closed-form expression, which is a polynomial in for fixed .
Preamble
import Mathlib import Definitions.Def_OffGridStorage_TechChoice_Model
Formal statement
namespace OffGridStorage.TechChoice
/-- Eq. (25), pp. 38–39: (i) `Q0 = D_H √(g/(2c_Q))` maximizes the no-storage full-discharge
profit over `Q ≥ 0`; (ii) the partial derivative of the closed form in `K` is
`T((g/Q)(-D_H - K/e) + g - c_K/e)`; (iii) at `(Q0, 0)` it equals `T(-√(2 c_Q g) + g - c_K/e)`. -/
theorem eq_25_marginal_storage (p : Params) (hp : Standing p) :
(0 ≤ Q0 p ∧ ∀ Q : ℝ, 0 ≤ Q → profitF p Q 0 ≤ profitF p (Q0 p) 0) ∧
(∀ Q K : ℝ, 0 < Q →
HasDerivAt (fun K' => closedFormF p Q K')
((p.T : ℝ) * (p.g / Q * (-p.DH - K / p.e) + p.g - p.cK / p.e)) K) ∧
HasDerivAt (fun K' => closedFormF p (Q0 p) K')
((p.T : ℝ) * (-Real.sqrt (2 * p.cQ * p.g) + p.g - p.cK / p.e)) 0 := by sorry
end OffGridStorage.TechChoice
Source
Kaps, Marinesi & Netessine, When Should the Off-grid Sun Shine at Night?, SSRN 3761397 (version of May 11, 2023), pp. 38–39, Appendix A.4.1, eq. (25)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.