필터 지우기
필터 지우기

Combining ode45 and optimization solvers

조회 수: 2 (최근 30일)
Fahad Aljehani
Fahad Aljehani 2021년 3월 28일
댓글: Fahad Aljehani 2021년 3월 28일
Hi,
I am strugging to solve ode45 with an optimization paramter that is time varying. Let's take an example
where is known vector and x is scalar (assume ). To solve the system by ode45, I will need to use interp1 command because varies with time. The output of the ode45 will be a vector which includes the solution of the ode. With that being said, I want to find the optimal
such that it is almost the same as u. My objective function will be . But when I use interp1 command, it does not work because will not be double type. If I use for example cvx toolbox, will be cvx type and not double !!
How can I fix this?
  댓글 수: 2
Star Strider
Star Strider 2021년 3월 28일
What sort of optimisation do you want to do?
Do any of the MATLAB Toolboxes (Such as the Optimization Toolbox or Global Optimization Toolbox) have the functions that perform that sort of optimisation?
Fahad Aljehani
Fahad Aljehani 2021년 3월 28일
I prefer using CVX. But I am open to use any buildin function that can do the job, fmincon, fminunc,etc.

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by