Add optimal control problems - quadcopter#373
Add optimal control problems - quadcopter#373m427kirb wants to merge 3 commits intoinfiniteopt:masterfrom
Conversation
pulsipher
left a comment
There was a problem hiding this comment.
Nice work thus far, this just needs some further refinements. Please refer to the existing examples as points of reference for the formatting and style.
| @@ -0,0 +1,140 @@ | |||
| # # Quadcopter Trajectory and Set Point Tracking | |||
There was a problem hiding this comment.
Instead of "set point", please use "setpoint" through out.
| # The quadcopter is an unmanned aerial vehicle with 4 propellors and in this case study, | ||
| # we seek to determine an optimal control policy for the | ||
| # 4 control inputs that must be adjusted over a specified time period to enable the | ||
| # quadcopter to closely follow given set points/trajectory while minimizing the difference between | ||
| # the set point and actual position and propellor input |
There was a problem hiding this comment.
I would clean up the grammar here a bit and be more succinct. This is a flight path tracking problem for a quadcopter UAV.
| # ## Background | ||
|
|
||
| # Modelling the quadcopter trajectory is an infinite dimensional optimization problem. | ||
| # The variables are dependent on time. |
|
|
||
| # Modelling the quadcopter trajectory is an infinite dimensional optimization problem. | ||
| # The variables are dependent on time. | ||
| # Using a sinusoidal setpoint trajectory and 5 minute time horizon, the problem formulation is as follows: |
There was a problem hiding this comment.
Move this to the formulation section
| # ``` | ||
|
|
||
| # ## Model Definition | ||
|
|
There was a problem hiding this comment.
In all the sections below please reduce the number of spaces used. We shouldn't each line be orphaned by itself. Please refer to the other examples as a reference.
|
|
||
|
|
There was a problem hiding this comment.
Please add some discussion of the results at the end. Also, you need to had maintenance tests.
| plot(p1, p2, p3, p4, layout = l) | ||
| plot!(size=(800,600)) | ||
|
|
||
| savefig("Control Input (U).png") |
There was a problem hiding this comment.
Let's display the plot instead of saving it.
Created Issue #372
Motivation : Expands library of optimal control problems. Demonstrates usage of features such as parameter functions, multiple states and control inputs, trajectory tracking.
Example : The quadcopter is an unmanned aerial vehicle with 4 propellors and in this case study, we seek to determine an optimal control policy for the 4 control inputs that must be adjusted over a specified time period to enable the quadcopter to closely follow given set points/trajectory while minimizing the difference between the set point and actual position and propellor input.