The Commonplace
Home Papers Evidence Explore Trends Syntheses Digests References Docs 🎲 Workforce Futures
← Papers
Direction, evidence grade, and study type are AI-generated labels (gpt-5-mini), not human-verified. Syntheses are LLM-written. "Tensions" are machine-detected candidates, not confirmed contradictions. A research-acceleration tool, not peer review. How this is built →

In a simulated 20-house Polish PV community, straightforward rule-based peer-to-peer pricing beats a Deep Q-Network pricing agent when only solar is present; adding household batteries narrows the gap and boosts savings under the RL policy, and SDR-shaped price parametrizations outperform multiplier-based rules.

Reinforcement Learning and Rule-Based Peer-to-Peer Pricing in Residential PV-BES Communities
Pablo Benalcazar, Maciej Kalka, Wilian Guamán, Jacek Kamiński · September 01, 2026
arxiv descriptive low evidence 7/10 relevance Full text usable extracted full text Source PDF

Structured author observations

Linked only from stored provider relations; the raw author line above is never matched by name.

Arxiv

Latest observation:

  1. Pablo Benalcazar unresolved corpus identity
  2. Maciej Kalka unresolved corpus identity
  3. Wilian Guamán unresolved corpus identity
  4. Jacek Kamiński unresolved corpus identity

Semantic Scholar

Latest observation:

  1. Pablo Benalcazar provider ID
  2. M. Kalka provider ID
  3. W.P. Guamán provider ID
  4. Jacek Kamiński provider ID
In simulated residential PV communities, simple rule-based P2P pricing outperforms the tested DQN-based RL pricing in the PV-only case, while adding household battery storage increases the RL policy's community savings and SDR-shaped RL pricing beats multiplier-based parametrization.

Citation observations

Cumulative provider counts captured on specific dates; providers are never combined.

This paper compares rule-based and learning-based pricing mechanisms for peer-to-peer (P2P) electricity trading in residential photovoltaic communities. The rule-based benchmarks comprise bill-sharing as an ex post allocation mechanism, the mid-market rate, and supply-demand-ratio pricing. The reinforcement-learning (RL) formulation is implemented through a Deep Q-Network and evaluated under multiplier-based and learnable SDR-shaped pricing, with a fixed-parameter SDR variant as a non-learning control. Performance is assessed through community savings together with complementary financial and operational indicators. In the base PV-only configuration, the rule-based benchmarks outperform the best RL policy. With battery energy storage, evaluated for the RL policies only, community savings under the best RL policy increase from EUR 734.23 to EUR 978.52. Across the learning-based modes and in both configurations, SDR-shaped pricing outperforms the multiplier-based parameterization considered. The results indicate that rule-based pricing remains highly competitive wherever the two families are compared directly, and that storage substantially improves the learning-based outcomes under this accounting, while the distribution of benefits remains heterogeneous across households.

Summary

Main Finding

Rule-based P2P pricing (bill‑sharing, mid‑market rate, SDR) remains highly competitive versus a centralized RL price‑setting agent in the studied residential PV community. Reinforcement learning (DQN) only outperforms the RL-free benchmarks when battery energy storage (BES) is present and when the RL agent uses an SDR‑shaped price parameterization rather than a simple multiplier scaling. Specifically, the best RL policy’s community savings rose from €734.23 (PV only) to €978.52 (PV + BES). Across learning modes, SDR‑shaped pricing dominated multiplier‑based pricing.

Key Points

  • Benchmarks and RL modes
    • Rule‑based benchmarks: bill‑sharing (BS), mid‑market rate (MMR), supply–demand‑ratio (SDR) rule.
    • RL modes (centralized DQN agent):
    • RL‑M (multiplier): actions scale grid buy/sell prices (µbuy, µsell).
    • RL‑SDR‑F (fixed): single, fixed SDR‑shaped parameter pair (non‑learning control).
    • RL‑SDR‑L (learnable): agent selects discrete sensitivity pairs (α, β) that map SDR → buy/sell via a tanh mapping.
  • Settlement differences matter
    • Rule‑based benchmarks settle the full internally matchable volume each hour.
    • RL posts ex‑ante buy/sell prices; internal trade only occurs if quoted prices are strictly inside the grid price corridor and the buy/sell spread is non‑negative. Thus realized traded volume can differ across mechanisms.
  • Performance summary
    • In the PV‑only configuration, rule‑based benchmarks outperform the best RL policy.
    • Adding household battery storage (PV‑BES) improved RL outcomes: best RL community savings increased from €734.23 to €978.52.
    • SDR‑shaped RL (RL‑SDR‑L) consistently outperformed multiplier RL (RL‑M).
  • Distributional effects
    • The distribution of benefits across households is heterogeneous; aggregate savings do not imply uniform gains.
  • Practical detail: any internal spread (pp2p,buy > pp2p,sell) is retained by the market operator and counted as a cost in the community objective; the RL reward maximizes aggregate community savings, implicitly penalizing wide internal spreads.

Data & Methods

  • Case study
    • Synthetic residential community: 20 heterogeneous households (8 prosumers with PV, 12 pure consumers).
    • Annual, hourly horizon (366 days); experiments use the same annual dataset for training and evaluation.
    • PV profiles from Renewables.ninja; loads from RAMP calibrated to Polish household statistics.
    • Grid prices: two‑zone TOU import price (0.249 €/kWh peak, 0.137 €/kWh off‑peak) and time‑varying export prices (market, mean ≈ 0.100 €/kWh).
    • Two technical configurations: PV‑only and PV + BES (aggregate BESS capacity 68.15 kWh, power 32.07 kW). Battery sizing/dispatch were pre‑optimized upstream by a genetic algorithm (rule‑based dispatch).
  • RL formulation
    • Centralized Deep Q‑Network (DQN) agent; reward rt = Jbase_t − Jp2p_t (hourly community cost saving relative to no‑P2P reference).
    • State vector st = [sin(hour), cos(hour), discretized net balance ˜b_t (9 bins), mean SOC (5 bins), log‑transformed SDR_{t−1}].
    • Actions:
    • RL‑M: K = 8 multiplier pairs µbuy ∈ {0.2,…,0.9}, µsell ∈ {1.05,…,1.40}.
    • RL‑SDR‑F: single fixed (α,β)=(0.5,2.0) (no learning).
    • RL‑SDR‑L: K = 9 sensitivity pairs α ∈ {0.1,…,0.9}, β = 2.0.
    • SDR→price mapping (SDR‑shaped): pp2p = Cctrl · tanh(−α ln(δ + SDR^{−1})) + Cbal (buy/sell analogues), with δ = 1e‑6, Cctrl = (pbuy−psell)/2, Cbal = (pbuy+psell)/2.
    • DQN details: feedforward network 128 and 64 ReLU layers; output |A| Q values; Adam lr = 5e‑4; γ = 0.95; replay buffer 50k; batch 64; target sync every 200 steps; ε‑greedy exploration decaying 1→0.01 (λ=0.99952); 500 training episodes (each episode = one sampled day); single random seed per reported run.
  • Evaluation metrics
    • Primary: community savings (Cref − Cpool).
    • Complementary: average trading price, user cost, prosumer revenue, traded energy, grid imports, self‑sufficiency index.

Implications for AI Economics

  • When to expect RL value over simple rules
    • RL can improve aggregate outcomes when the system has flexible assets (here, household batteries) that increase the space for beneficial reallocation and allow adaptive pricing to exploit temporal patterns. In PV‑only settings with limited re‑dispatch flexibility, simple benchmarks can match or beat RL.
  • Importance of parameterization and mechanism design
    • The RL agent’s action representation matters: an SDR‑shaped parametrization that encodes market balance semantics performed better than blind multiplier scaling. This is a reminder that embedding domain structure into action/state spaces often yields better learning outcomes and sample efficiency.
  • Distributional and regulatory considerations
    • Aggregate savings can mask heterogeneous household impacts. Regulators and market designers must consider fairness and allocation rules (e.g., whether operator‑retained spreads are redistributed) — these design choices materially affect incentives and welfare distribution.
  • Evaluation, robustness, and interpretability
    • Reported RL results stem from a single training seed/run; stochasticity in training and environment should be explored (multiple seeds, cross‑validation) before concluding robustness. Also, centralized RL policies are easier to evaluate but may be less transparent; rule‑based mechanisms remain attractive for interpretability and predictable distributional outcomes.
  • Recommendations for future AI economics work
    • Compare RL against strong, economically meaningful benchmarks (as done here); test multiple seeds and longer evaluation samples.
    • Explore alternative objectives (e.g., social welfare, fairness‑aware rewards, operator revenue constraints).
    • Consider decentralized or multi‑agent formulations to capture strategic behavior and privacy constraints.
    • Investigate settlement rules (redistribution of spreads, budget balance) as part of the learning environment — operator revenue retention changes incentives and learned policies.
    • Study continuous‑action or policy‑gradient methods for finer price setting, and sensitivity to market price inversion events (export > import).

Limitations to note: the study uses a centralized agent with exogenous state transitions, a single training realization per mode, and a specific settlement rule where operator‑retained spreads are counted as cost; battery sizing/dispatch was optimized outside the RL loop. These modelling choices influence generalizability and should be addressed in follow‑up work.

Assessment

Paper Typedescriptive Evidence Strengthlow — Results are based on simulation experiments with a single synthetic community (20 households), a single training run per RL mode (fixed random seed), and no statistical inference or sensitivity analysis; outcomes therefore show plausibility in the simulated setting but provide weak causal or empirical generalization to real-world deployments. Methods Rigormedium — The study implements standard RL machinery (DQN, replay buffer, target network) and compares to clear rule-based benchmarks using realistic-looking inputs (synthetic loads calibrated to national stats, Renewables.ninja PV, time-varying tariffs). However, methodological weaknesses include reliance on a single training realization, limited scenario variation, no robustness checks or ablation studies, centralized pricing agent assumptions, and off-line/exogenous treatment of battery dispatch. SampleSimulation of a single residential electricity community of 20 heterogeneous households (8 prosumers with PV, 12 consumers). Hourly annual dataset (366 days) using synthetic household loads generated with the RAMP framework calibrated to Polish statistics and PV generation from Renewables.ninja; grid import price follows a Polish two-zone TOU tariff (G12w) and export prices follow Polish net-billing hourly market prices. Two technical configurations: PV-only, and PV plus battery energy storage (aggregate BESS capacity 68.15 kWh, power 32.07 kW). RL training: DQN with 500 episodes, training days sampled with replacement, single random seed; evaluations are greedy on the same dataset. Themesinnovation adoption GeneralizabilitySmall, single-community simulation (20 households) — may not scale to larger or more diverse communities, Synthetic load generation and specific Polish tariff/export-price structure limit geographic transferability, Single training run per RL mode with fixed random seed and no confidence intervals or sensitivity analyses, Battery sizing and dispatch determined externally by a genetic algorithm and rule-based policy, so results depend on those upstream choices, Centralized RL agent assumes full observability and control that may be infeasible in real decentralized P2P markets, Regulatory, transaction-cost, and participant-behavioral factors not modeled (e.g., strategic bidding, fairness preferences)

Claims (8)

ClaimDirectionOutcomeConfidence & EvidenceDetails
In the base PV-only configuration, the rule-based pricing benchmarks outperform the best reinforcement-learning policy on community savings. Consumer Welfare positive Community savings from P2P electricity trading
Reading fidelity high
Study strength low
n=20
0.09
Adding battery energy storage increases community savings under the best RL policy from €734.23 to €978.52. Consumer Welfare positive Annual community savings
Reading fidelity high
Study strength low
n=20
increase from €734.23 to €978.52
0.09
Across the learning-based modes and in both PV-only and PV-BES configurations, SDR-shaped pricing outperforms the multiplier-based parameterization. Consumer Welfare positive Performance of learning-based P2P pricing, primarily community savings
Reading fidelity high
Study strength low
n=20
0.09
Rule-based pricing remains highly competitive with reinforcement-learning pricing when the two families are compared directly. Consumer Welfare mixed Financial and operational performance of P2P pricing mechanisms
Reading fidelity high
Study strength low
n=20
0.09
The distribution of economic benefits from the evaluated pricing mechanisms is heterogeneous across households. Inequality mixed Distribution of community benefits across households
Reading fidelity high
Study strength low
n=20
0.09
Rule-based benchmarks settle the internally matchable trading volume in full in every interval, subject to their pricing bounds, whereas RL mechanisms settle internally only when quoted prices lie strictly inside the grid-price corridor and the internal buy-sell spread is non-negative. Task Allocation mixed Internally traded electricity volume and settlement eligibility
Reading fidelity high
Study strength high
not reported
0.3
The RL agent is trained to maximize aggregate community savings rather than household-level benefits. Consumer Welfare positive Aggregate hourly and annual community savings
Reading fidelity high
Study strength high
n=366
0.3
Because load, generation, and battery trajectories are exogenous, the pricing action does not affect state transitions, so the DQN functions as a discrete-action solver for the pricing problem. Other null_result Dependence of state transitions on pricing actions
Reading fidelity high
Study strength high
not reported
0.3

Notes