Optimization Problem for ecms fcmincon
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Yusuf DOGAN
le 16 Juil 2022
Réponse apportée : Achmad
le 20 Fév 2024
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 commentaires
Walter Roberson
le 16 Juil 2022
I am not clear about what you are looking for? Are you looking for a mathematical function corresponding to that particular call to fmincon?
Réponse acceptée
patrick1704
le 16 Juil 2022
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
Plus de réponses (1)
Achmad
le 20 Fév 2024
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 commentaires
Voir également
Catégories
En savoir plus sur Surrogate Optimization dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!