Hi Streamlit community!
I’m excited to share a small engineering web app I’ve built that optimizes the design of a cantilever beam using machine learning!
While this app focuses on a beam example, it’s actually a demo for a general optimization framework that can be extended to other problems too.
What it does
The app helps users minimize one of the following objectives:
- Weight (based on cross-sectional area)
- Deflection (at the beam’s free end)
- Stress (at the fixed end)
All while satisfying design constraints:
- Maximum deflection: δ ≤ δ_max
- Maximum stress: σ ≤ σ_y
You can define:
- Beam length, applied load, yield strength, and allowable deflection
- Cross-section dimensions via width and height
Check it out: https://cantilever-beam-optimization.streamlit.app/
Would love to hear your thoughts and feedback!
Feel free to play around with your own parameters and let me know what you think!