Design Optimization of a Helical Compression Spring

Analysis function for helical compression springs + design optimization function.


Updated 6 Oct 2017

View License

These functions are used in both machine design (SE 410) and engineering design optimization (SE 413) courses at UIUC. The function hcs.m takes as input a design vector that represents a helical compression spring design, as well as optional display and variable selection arguments. It computes, based on the textbook Shigley's Mechanical Engineering Design, the design objective function, as well as manufacturing, stress, and other constraint functions. This design optimization implementation is a simplified version of the spring design element of the suspension co-design problem presented in the following ASME journal article:
The full code for the test problem presented in the journal article is available from:

A video demonstrating an older version of this code is available at:

Cite As

James Allison (2023). Design Optimization of a Helical Compression Spring (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Simulink Design Optimization in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes