Power demand operation scheduling
Input
Output
Operation request
SoC
SoH
Send operation command
Power distribution
Matlab code