This program visualizes the market clearing for power systems with energy storage based on their marginal value and efficiencies. The program lets you add supplies, demands and storages, adjust their values, cost, efficiencies and power capacity to see how the market clearing changes.
Try it out at https://peraaslid.github.io