impose a condition on a general value of a vector
1 次查看(过去 30 天)
显示 更早的评论
Hi every one,
I have to do an optimization ( with fmincon), where I have a constraint one the trajectory .
basically I want that my vehicle passes to a point during its flight, it is not important when or where it is that point, only important that during the all trajectory it passees for a selected point. this point can't be the initial or final point.
for example in the case that it is the end point I can write : err_latitude = (latitude(end) - latitude_data)
if it is a general point of latitude vector coming out from ode ?
I cannot write latitude(5) or 10, or anyothers number, because optimization could not converge.
I need to tell to contraint function:
" I give to you the entire vector of latitude", one point of this vector must be equal to this value (latitude_data) ( but not initial or final), you must choose the better point in the vector
many thank for your time and considerations
Kind regards
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Nonlinear Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!