Dynamic Optimization of Solar Panel Systems through Supply-Demand Balancing