Trajectory Optimization using fmincon
显示 更早的评论
Hi everybody, I'm trying to run a trajectory optimization using the Optimization Toolbox of Matlab. My goal is to optimize the ascent trajectory of a launch vehicle (which is governed by two - or even one - simple dynamic equations) modulating a certain number of design variables in order to obtain, for example, the path which maximizes the payload, adding some constraints (e.g. on the maximum dynamic pressure).
My question is: the objective function and the constraints are not analytically expressed as functions of the design variables. Can I still use the functions provided (e.g. fmincon), maybe in an iterative process? How should I proceed?
Thanks for helping.
回答(1 个)
Andrew Newell
2011-5-23
You don't have to have an explicit expression for the objective function and constraints. If you can create a function like this:
f = myfun(x,param1,param2,...)
...
which allows a vector for x, it doesn't matter how you actually solve for f. You could solve an ode, find a root, whatever. However, if there are multiple solutions for f or you can't solve for it accurately, you have a problem.
类别
在 帮助中心 和 File Exchange 中查找有关 Choose a Solver 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!