  In this paper, a computationally lightweight algorithm is introduced for
hybrid PV/Battery/Load systems that is price responsive, responds fast, does
not require powerful hardware, and considers the operational limitations of the
system. The method is applied to two buildings equipped with PV and battery.
Simulation results show that the method can give results that are up to 3.9%
more expensive than the Model predictive control (MPC) approach while the
runtime of the program is up to 1000 times less than the MPC. Also, while the
runtime of the proposed method is in the range of the self-consumption
maximization (SCM) approach as the fastest method, its electricity cost is
about 3.2% cheaper than the SCM method. Simulation results also show that in
case of providing grid services by the battery the difference between
electricity cost of the proposed approach and MPC can reduce which makes the
method good for such applications.
