Optimize two inputs into a system of ODES

1 view (last 30 days)
Jcross
Jcross on 18 Sep 2021
Commented: Star Strider on 19 Sep 2021
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
Jcross
Jcross on 19 Sep 2021
Thanks again,
I've tried to write up the equations to make it clearer what I'm trying to do.
I have the intial conditions and want to solve the above ODE to reach a given in the minimum time possible.
The two torques T1 & T2 can have any values at any time as long as they are always within their given ranges: T1 (-300,300) T2 (-250,150)
So the parameters are free to change with time, is fmincon able to find the applied T1 & T2 over time to reach the final position in minimum time.
Star Strider
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.)

Sign in to comment.

Answers (0)

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!