File Exchange

image thumbnail

Truss Solver and Genetic Algorithm Optimzer

version (17.2 KB) by spencer

spencer (view profile)

Solver uses a Direct Stiffness Method. GA modifies X,Y,Z coordinates of nodes and areas of elements.


Updated 06 May 2011

View License

The Evolution of a Truss Structure program contains a truss solver as well as a genetic
algorithm optimizer. The truss solver uses a direct stiffness model to solve for the forces in
each element of the truss and displacements of each node in the truss. Based on the forces
and geometric and material properties, a safety factor for each element is also calculated.
The genetic algorithm optimizer generates a chromosomal representation of a “species” of
truss, and “breeds” individuals of the population by swapping alleles in a single-point-crossover
manner. Population size and mutation rate are set by the user. Individuals are evaluated based
on a “fitness” function, and individuals which have a higher fitness are more likely to be chosen
for mating, and thus more likely to pass on the traits which yield a higher fitness.

Comments and Ratings (4)

sandy lord

HI thanks for sharing these files and can you tell me how to run your program because there are so many files and i am confused...

osman hamdy


MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Truss Analysis

Inspired: Truss simulation

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor