Optimization Problem for ecms fcmincon

조회 수: 3 (최근 30일)
Yusuf DOGAN
Yusuf DOGAN 2022년 7월 16일
답변: Achmad 2024년 2월 20일
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
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?
Yusuf DOGAN
Yusuf DOGAN 2022년 7월 16일
Actually not. I want to find out by which mathematical method the algorithm solves the problem. example When 1st value is 1200 2nd value is 70, Algorithm shows 1st output as 2700 2nd output as -1500. How does he get this result? What math formula or math problem does he use. I will be happy if you can help.

댓글을 달려면 로그인하십시오.

채택된 답변

patrick1704
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
Yusuf DOGAN
Yusuf DOGAN 2022년 7월 16일
Thanks for information. İ going to review these articles

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Achmad
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.

카테고리

Help CenterFile Exchange에서 Surrogate Optimization에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by