Trebuchet Range Simulation and Optimization

버전 1.0.0.0 (240 KB) 작성자: James Allison
Model of a simple trebuchet that predicts projectile range based on fulcrum position & launch angle.
다운로드 수: 1.1K
업데이트 날짜: 2012/4/6

라이선스 보기

This submission provides two main files: treb.m and plot_treb.m.

treb.m predicts the projectile range of a simple trebuchet given its fulcrum position and release angle. Other parameters are held fixed (but can be adjusted by the user). ode45 is used to simulate the dynamic system, including event detection for projectile release and landing.

plot_treb.m samples treb.m to gather range data and then plots it to visualize range as a function of fulcrum position and release angle.

treb.m is intended to be used with an optimization algorithm (e.g., fmincon - bound constraints should be used). The range plot is useful for visualizing the nonsmoothness in objective function that results from discrete elements of the system (such as limits on how high the trebuchet mass can be raised). This nonsmoothness can cause difficulty with gradient-based optimization. Choosing a good starting point that avoids this nonsmoothness helps, but it is also possible to impose the geometric limits as optimization constraints instead of satisfying them implicitly in the simulation, eliminating nonsmoothness from the objective function.

A handwritten derivation of the model is also provided (TrebuchetDerivation.pdf) that includes both the trebuchet model and a projectile model using parameters appropriate for a golf ball.

This model corresponds to an example video created for ME 149 (Engineering System Design Optimization), a graduate course taught in the Mechanical Engineering department at Tufts University. The video can be viewed at:

http://www.youtube.com/watch?v=3QUJNEzloDo

인용 양식

James Allison (2024). Trebuchet Range Simulation and Optimization (https://www.mathworks.com/matlabcentral/fileexchange/36065-trebuchet-range-simulation-and-optimization), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2011b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Multibody Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Trebuchet/

버전 게시됨 릴리스 정보
1.0.0.0