How to use CVX in matlab code?
22 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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,
0 Kommentare
Antworten (1)
Torsten
am 13 Nov. 2022
Use intlinprog.
No need to linearize anything - your equations are linear in the unknowns.
12 Kommentare
Torsten
am 14 Nov. 2022
Bearbeitet: Torsten
am 14 Nov. 2022
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".
Siehe auch
Kategorien
Mehr zu UAV finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!