Objective function for projectile

6 vues (au cours des 30 derniers jours)
Zivile Dailidonyte
Zivile Dailidonyte le 13 Déc 2018
Modifié(e) : Torsten le 14 Déc 2018
I have a function to calculate projectile's distance and velocity in both x and y direction. I need to write a function, which defines the objective function to be minimised. objective should take as arguments: the two variables being optimised (i.e. the initial velocity and angle), and the target coordinates tx and ty. It should call my function mentioned earlier with the initial conditions and return the shortest distance between the computed trajectory and (tx, ty). I've not dealt with optimization before so I don't know where to start.
Many thanks

Réponses (2)

Image Analyst
Image Analyst le 13 Déc 2018
My demo calculates those but I don't use optimization. What are you varying to get your optimization.
My demo is attached.

Torsten
Torsten le 14 Déc 2018
Modifié(e) : Torsten le 14 Déc 2018

Catégories

En savoir plus sur Physics 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!

Translated by