impose a condition on a general value of a vector

1 Ansicht (letzte 30 Tage)
Alessandro Vitiello
Alessandro Vitiello am 28 Apr. 2020
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

Antworten (0)

Kategorien

Mehr zu Nonlinear Optimization finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by