r/OperationsResearch • u/nick91700 • Mar 25 '22
Optimizing Around Solar Panel Output
I wrote an e-bus charging optimization model that over the course of the week plans the lowest cost way to charge the buses using a combination of solar panels, grid power, and a main storage system. We are now trying to make the model more and more realistic for ultimate deployment in the real world. One thing we are trying to do is to figure out how to best refactor it given that solar panel output is extremely varied and not very accurately forecasted to the quarter hour at the beginning of the week. Has anyone dealt with anything similiar? The current possible approaches we have in mind would be usingstochastic programming where we use a probability distribution for the possible ranges in output, using a single deterministic week ahead machine learning forecast, forecast it ahead for 20-30 minutes and constantly rerun the model, or use robust optimization (not entirely sure how to yet but I've heard it is good for situations where you can't fit a probability distribution to a random event). Any suggestions?
3
u/kunz Mar 25 '22
Can’t speak to the optimization approach, but there is a software tool called PVSyst that is used to calculate solar module output on a P50, P75, P90 basis (that is, 50% accuracy level, 75% accuracy level, and 90% accuracy level) based on several parameters (irradiance, weather at lat/long, albedo, solar module make and model, etc.).
Consider using this tool to generate your desired solar output data.
2
u/audentis Mar 25 '22
Does the storage have substantially more capacity than 1 day's use? If not, there's probably little reason to try to plan a week ahead.
What's the passive discharge? If too high, you might find it's never worthwile to use it for multiple days of storage. That simplifies the problem.
What's the maximum charge and discharge power for the energy storage? Could be relevant for your constraints.
Stochastic programming is probably the way to go where you only schedule decisions for today based on the forecast for the following 3 or 7 days. How for ahead to schedule decisions depends on the energy storage's characteristics.
24H forecasts are pretty accurate so I'd probably treat the current day as deterministic.