Optimize two inputs into a system of ODES
1 view (last 30 days)
Show older comments
Hi, I'm having trouble finding the right function to optimize the time history of two torques inputted into a system of ODES.
I'm trying to find the input history of 2 torques, to move two link system from a given starting position to a given finish position in the shortest time possib;e.
I have a range of possible values for each of the two torques that they can be at each time. T1 (-300,300) T2 (-250,150)
The two torques are then inputted into a system of ODEs describing the links angular accelerations, velocities and postions.
I first thought of using ODE45 and fmincon. But it seemed fmincon is used to find the optimal input values, not optimizing the inputs once the function is running.
Any suggestions of MATLAB functions to use or general help would be much appreaciated!
Thank You!
5 Comments
Star Strider
on 19 Sep 2021
This would appear to be an optimal control problem, and likely an extremely difficult one at that. It would be necessary to use the Robust Control or Model Reference Control Toolbox functions to work with it. (I have neither of them, and have not worked with optimal control problems in decades.)
Answers (0)
See Also
Categories
Find more on Frequency Response Estimation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!