How to use CVX in matlab code?

조회 수: 13 (최근 30일)
Safia
Safia 2022년 11월 13일
편집: Safia 2022년 11월 14일
Hello!
I am new to cvx, I have no idea how to use it.
I hope you could help me.
I want to optimize the UAV trajectory, I have several variables that I have to calculate before getting the optimal trajectory which are related to the location of the UAV.
I wonder if I should run my program in matlab first with a fixed point of the UAV location, then apply CVX to find the optimal points?
Thanks in advance,

답변 (1개)

Torsten
Torsten 2022년 11월 13일
Use intlinprog.
No need to linearize anything - your equations are linear in the unknowns.
  댓글 수: 12
Torsten
Torsten 2022년 11월 14일
편집: Torsten 2022년 11월 14일
I don't see from your model how X influences R. If X is also a solution vector and influences R(t), you will have to use "ga" instead of "intlinprog" since your problem becomes nonlinear.
So define X(1),...,X(T) as solution variables - then you have values in the course of the optimization to calculate R(1),...,R(T) in the "nonlcon" function of "ga".
Safia
Safia 2022년 11월 14일
편집: Safia 2022년 11월 14일
@Torsten you will understand more by this example : in my case X(t)=qu(t).
at first
because Rn is non convex so :
after this the constraint becomes :

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by