How to smooth my optimization results?
2 次查看(过去 30 天)
显示 更早的评论
Dear all,
I have a very very urgent issue to solve as my thesis is due next week and my optimizer still does give me results I do not like. You can guess I become a little nervous ;)
So, I am optimizing the dispatch of storage in order minimize peaks in electricity demand of commercial or industrial clients. That basically means, that storage should charge during off-peak hours and then discharge to minimize the peaks in demand as good as possible (constrained by the size of storage and its max output).
Thereto, I apply CPLEX as a solver via MATLAB toolbox functions. My objective function looks as follows:
f_help = zeros(length(P_USE),1);
f = [f_help;1]; % Vector for linear objective function: Minimize p*x (negative x for discharged/sold energy)
The 1 at the end of the f-vector is an auxiliary variable which denotes the maximum peak after storage operation. Thus, this function only minimizes for this value. The f_help-vector denotes the whole dispatch vector. The idea behind that is quite outside the box, but now to the point.
In applying this function and some related constraints, the optimizer gives me the outcome as seen in the figure. You can see, that the pink curve drops below zero (storage discharges) even at times when there is no peak. It definitely should only discharge when there is a peak in demand. Also, the whole curve is very jumpy. It should not be!
Do you see any possibility with the solver or a smoothing routine to make the outcome more "smooth"?
I am really helpful for everything!!
Thanks,
Mathias![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/198001/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/198001/image.png)
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surrogate Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!