How can I minimize absolue value in a power optimprob?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi everybody,
I'm studying a power optimprob which involves a microgrid composed by a PV system, an energy storage, loads and an EV. It is summed up as a big node in which I assume absorbed power is negative (i.e. loads) and generated power is positive (i.e PV), so that I have power balance as:
Ppv+Pbatt+Pev+Pload=Pgrid
where Pg is the power flow delivered from (or to) the main grid. The objective is to minimize the integral of Pgrid abs value, so that the power exchanges beetween the main grid and the power grid are minimized, while the control variables are Pbatt and Pev; Ppv and Pload are fixed.
After the setting of constraints , how can I formulate this problem? How can I define my objective function? Have I to set Pgrid too as an optimvar? And how should I treat abs value?
댓글 수: 2
Rik
2021년 10월 21일
I don't understand your system well enough to understand what your question is. It sounds like you first need to find out what exactly you want to know before you can start with the implementation.
채택된 답변
Matt J
2021년 10월 21일
편집: Matt J
2021년 10월 21일
The objective is to minimize the integral of Pgrid abs value... while the control variables are Pbatt and Pev; Ppv and Pload
If your unknown vector is x=[Pbatt;Pev; Ppv; Pload] then your problem sounds like the L1-norm minimization,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/774498/image.png)
where C is just C=[1;1;1;1] and C*x=Pgrid.
If I've interpreted correctly, then minL1lin is applicable
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Particle Swarm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!