Objective function for projectile

조회 수: 6 (최근 30일)
Zivile Dailidonyte
Zivile Dailidonyte 2018년 12월 13일
편집: Torsten 2018년 12월 14일
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

답변 (2개)

Image Analyst
Image Analyst 2018년 12월 13일
My demo calculates those but I don't use optimization. What are you varying to get your optimization.
My demo is attached.

Torsten
Torsten 2018년 12월 14일
편집: Torsten 2018년 12월 14일

카테고리

Help CenterFile Exchange에서 Physics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by