Battery storage

PowerOptLab provides a power–energy (PE) storage model and a current–voltage–charge (IVQ) model. PE is suitable for energy scheduling when fixed efficiencies and power ratings are adequate. IVQ represents cell voltage and current explicitly and requires the corresponding cell data.

ModelStored stateElectrical representationEntry point
Power-energy (PE), StorageDeviceEnergy in WhAC port with fixed one-way efficiencies and supplied power/current ratingssolve_multiperiod_opf
Current-voltage-charge (IVQ), IVQBatteryCharge-based, dimensionless SoCCell voltage/current model coupled to an AdvancedInvertersolve_ivq_battery, solve_multiperiod_ivq

PE storage is a promotion candidate; IVQ is a prototype. PE's soc result is a compatibility alias for energy in Wh. It is not the dimensionless SoC used by IVQ.

Models and examples

Your taskGuide
Select a model and the data needed for comparisonPE versus IVQ
Schedule storage with energy balance and AC port limitsPower-energy model
Study cell-limited power and charge-linked dispatchCurrent-voltage-charge model
Look up constructors, chemistry helpers and solve resultsBattery storage API

The PE–IVQ comparison explains the assumptions, data requirements and losses in each model. The individual guides give the equations and examples. Multi-period OPF describes the PE scheduling problem.

EV charging and converter models

Electric vehicles reuse the PE energy account but add vehicle, equipment and departure requirements. The operating-mode guide also applies to bidirectional PE storage: positive efficiencies alone do not exclude simultaneous charging and discharging. The compatibility guide records shared PE port changes.

IVQ uses the converter physics documented in Inverter-based resources. Its current implementation couples battery and converter through DC power. The IVQ guide explains the resulting limitations when converter ratings depend on the battery terminal voltage.