Text this: Modeling a PV- diesel-battery power system: An optimal control approach