Text this: Simulation and Optimization of a Hybrid Photovoltaic/Li-Ion Battery System