Question about fmincon including ODE

2 次查看(过去 30 天)
Kenta
Kenta 2014-9-3
编辑: Matt J 2014-9-3
Dear all. I am using fmincon to optimize a constrained problem including integration of ODE. I want to ask a simple question about the applicability of fmincon: Can fmincon optimize the integration time as well as parameters? Or fmincon may be only applicable to time-fixed problems? For more information, I am putting the initial guess of integration time to fmincon, and intending to optimize integration time as well as other parameters. Regards, Kenta

回答(2 个)

Matt J
Matt J 2014-9-3
编辑:Matt J 2014-9-3
Even when the integration time is not an unknown parameter, it is questionable whether fmincon is applicable. I assume your ODE is with constant coefficients and is higher than first order. In this case, the solution of the ODE is not a differentiable function of the unknown coefficients (or at least the characteristic roots are not). That doesn't rule out empirical success of course, i.e., you could just try it and hope the iterations don't stray into any bad regions.
But since you're already gambling with fmincon, there's no longer much reason to worry about rigour when you include integration time as an additional parameter. The objective as a function of integration time would have to be well-behaved, though. For example, if you are simply doing a least squares fit of the ODE solution to some given noisy data, I suspect that there might be lots of local minima as a function of the integration time, even when it is the only unknown parameter. Also, you would need appropriate constraints.Otherwise an integration time of zero should trivially give you the global minimum squared error.
  1 个评论
Kenta
Kenta 2014-9-3
编辑:Matt J 2014-9-3
Dear Matt J, thank you for your prompt reply. Indeed, the reason I worry about including integration time in fmincon as an additional parameter is that I found a similar subject in the following:
and Deepraj said 'fmincon' only provides solution to Constrained fixed time optimal system. But I couldn't find other documents about this issue, so I am puzzling.

请先登录,再进行评论。


Alan Weiss
Alan Weiss 2014-9-3
Take a look at this example. fmincon works just fine on the example, especially if you increase the DiffMinChange option a bit.
I think that you can use fmincon to optimize over integration time as well as other parameters.
Alan Weiss
MATLAB mathematical toolbox documentation

类别

Help CenterFile Exchange 中查找有关 Solver-Based Nonlinear Optimization 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by