impose a condition on a general value of a vector
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Nonlinear Optimization dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!