Truss optimization using PSO

Truss optimization using particle swarm algorithm.

You are now following this Submission

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 (2026). Truss optimization using PSO (https://se.mathworks.com/matlabcentral/fileexchange/131129-truss-optimization-using-pso), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
2.2.0

Fixing some errors in the 2013 version

2.1.0