Truss optimization using PSO
Version 2.2.0 (444 KB) by
Mehdi Ghasri
Truss optimization using particle swarm algorithm.
Particle Swarm Optimization Algorithm
Truss optimization using particle swarm algorithm.
This code applies the PSO algorithm to 4 standard trusses, including two two-dimensional trusses (ten-membered and 3-membered trusses) and two three-dimensional trusses (25-membered and 72-membered trusses).
This code can be used to optimize all kinds of trusses, and you only need to enter the specifications of the desired trusses in the relevant files.
This code also shows the value of Non Penalized weight so that students can better understand the concept of the penalty function and observe its changes along the optimization path.
Note that the code provided by "EDUCATIONAL FREEWARE FOR ENGINEERING STATICS & DYNAMICS, L. SILVERBERG" is used here to analyze the trusses.
Cite As
Mehdi Ghasri (2024). Truss optimization using PSO (https://www.mathworks.com/matlabcentral/fileexchange/131129-truss-optimization-using-pso), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.