Optimization Problem for ecms fcmincon
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello. I reviewed a work that I got from the matlab library. In this study, it calculates the minimum value. But I couldn't find how it is calculated in real mathematics. I need help on how to solve this account. Does anyone know the solution or suggest a resource I can look into?
The code;
Pbatt_char= 1500;
SOC_min=60; SOC_max=90; Pfc_min=850;Pfc_max=8800; Pbatt_max=3400;
Aeq=[0 1 0;1 0 1];
mu=0.6;
beq=[1-2*mu*((u(2)-0.5*(SOC_max+SOC_min))/(SOC_max+SOC_min)); u(1)];
lb=[Pfc_min, 0, -Pbatt_char];
ub=[Pfc_max, 100, Pbatt_max];
x0=[3000, 0.1, 3000];
options = optimoptions('fmincon','Algorithm','active-set','Display','off','MaxFunctionEvaluations',1000,'MaxIterations',100);
[y,fval] = fmincon(@ecmsfun,x0,[],[],Aeq,beq,lb,ub,[],options);
Pfc=y(1); Pbatt=y(3); alpha=y(2);
sys = [Pfc Pbatt alpha];
From: ECMS s-funtion
댓글 수: 2
Walter Roberson
2022년 7월 16일
I am not clear about what you are looking for? Are you looking for a mathematical function corresponding to that particular call to fmincon?
채택된 답변
patrick1704
2022년 7월 16일
Hi there,
the active-set algorithm you specified in your script is discussed in this Matlab article: Constrained Nonlinear Optimization Algorithms - MATLAB & Simulink - MathWorks Deutschland
In the end, the algorithm tries to solve the the Karush-Kuhn-Tucker optimality conditions by means of sequentially solving quadratic optimization problems, using gradient information, considering whether or not constraints are active or inactive.
You will also find a lot on this topic in general optimization/optimal control books like: Practical Methods for Optimal Control and Estimation Using Nonlinear Programming, Second Edition | SIAM Digital Library
추가 답변 (1개)
Achmad
2024년 2월 20일
Hello @Yusuf DOGAN. I am now trying to do analysis on that problem with same source as yours Energy Management Systems for a Hybrid Electric Source (Application for a More Electric Aircraft). But I can not find the S-function for the ECMS method. It is not included in the example. Could you help me by sharing your S-function m file if you still have it? Thank you.
댓글 수: 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!