Home Energy Management with CVXPY + HiGHS in the Browser

An interactive HEMS prototyping platform using CVXPY's Disciplined Parameterized Programming (DPP) for battery, EV, and solar PV scheduling with real Dutch day-ahead prices — solved entirely in-browser via Pyodide

A Home Energy Management System (HEMS) optimally schedules a household’s flexible assets — home battery, EV charger, and rooftop solar PV — to minimise electricity cost or maximise self-consumption over a multi-day horizon.

This demo runs entirely in your browser — no server, no installation. It uses Pyodide to run Python + CVXPY + HiGHS (via SciPy) as WebAssembly.


Interactive Demo

Select a date range, choose your operating mode, configure components, and press Run Optimisation. Each day is solved as a rolling 24 h window with SoC carried forward.

Loading Pyodide runtime…
Simulation Settings
💰 Trade Mode
Cost minimisation with arbitrage.
  • Sells surplus solar if more profitable
  • Battery used for trading
  • Charges when beneficial for arbitrage
🌳 Green Mode
Self-reliance first.
  • Surplus solar sold only after local use
  • Battery reserved for consumption
  • Charges when prices are low
Cost Model (NL Dynamic Contracts)
export price = import price (sell-back at full retail rate)
Components (toggle on/off)
      Base Load
      Output Waiting for Pyodide to load…
      Electricity Prices
      Cost / Revenue
      Net Grid Power
      Battery Power
      Battery SoC
      Solar PV Breakdown
      Heat Pump
      EV Breakdown