Add harmonix-opt (Harmony Search) as alternative optimizer — harmonix…#1
Open
AutoPyloter wants to merge 1 commit into
Conversation
…_solution/
Adds a complete Harmony Search optimisation example using the harmonix-opt
library as a drop-in replacement for the genetic algorithm in main.py.
The original FEM pipeline (Pre.py, Sol.py, Post.py) is completely unchanged.
Files added in harmonix_solution/:
main_harmonix.py
- Continuous design space, same constraints as original main.py
- Direct GA replacement (equal FEM budget: 5000 calls)
main_harmonix_chs.py
- Discrete EN 10210-2 CHS profile catalogue (50 profiles, S355 steel)
- Full Eurocode 3 checks: section class (§5.5.2), tension (§6.2.3),
buckling curve a (§6.3.1), SLS deflection L/300 (NA Table NA.1)
- Buckling lower bounds pre-computed analytically before optimisation —
physically infeasible profiles are excluded without any FEM call
benchmark_50run.py
- 50-run statistical comparison, equal FEM budget (5000 / method)
- Result: HS mean weight 5219 vs GA mean weight 6540 (−20.2%)
- Mann-Whitney U: p < 0.0001, effect size r = 0.861 (large)
- All 50 runs feasible for both methods
README_harmonix.md
- Usage, constraint table, example output, benchmark results
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…_solution/
Adds a complete Harmony Search optimisation example using the harmonix-opt library as a drop-in replacement for the genetic algorithm in main.py.
The original FEM pipeline (Pre.py, Sol.py, Post.py) is completely unchanged.
Files added in harmonix_solution/:
main_harmonix.py
- Continuous design space, same constraints as original main.py
- Direct GA replacement (equal FEM budget: 5000 calls)
main_harmonix_chs.py
- Discrete EN 10210-2 CHS profile catalogue (50 profiles, S355 steel)
- Full Eurocode 3 checks: section class (§5.5.2), tension (§6.2.3), buckling curve a (§6.3.1), SLS deflection L/300 (NA Table NA.1)
- Buckling lower bounds pre-computed analytically before optimisation — physically infeasible profiles are excluded without any FEM call
benchmark_50run.py
- 50-run statistical comparison, equal FEM budget (5000 / method)
- Result: HS mean weight 5219 vs GA mean weight 6540 (−20.2%)
- Mann-Whitney U: p < 0.0001, effect size r = 0.861 (large)
- All 50 runs feasible for both methods
README_harmonix.md
- Usage, constraint table, example output, benchmark results