How drtanng26/bai-tap-gk-ttnt-nhom-3 works
MetaOpt-Bench is an optimization benchmarking and visualization application for simulated annealing on TSP and GTO on continuous problems, with Hill Climbing, PSO, GWO, and WOA as comparison algorithms. Users run experiments through the Streamlit dashboard or CLI, choose benchmark problems and algorithms, and inspect optimization results and plots; batch runs also produce statistical summaries. The graph includes README-documented capabilities where source excerpts are incomplete; edges are limited to relationships shown by excerpts, the source index, or the README.
Main entry points: app.py Streamlit Dashboard · base_problem.py Problem Interface · base_optimizer.py Optimizer Results · main_cli.py Experiment CLI
Components 19
User Interfaces
- Streamlit Dashboard
app.py - Experiment CLI
main_cli.py
Optimization Problems
- TSPLIB Instances
data/tsplib - TSP Problem
src/problems/tsp.py - Continuous SA Problem
src/problems/continuous_sa.py - F1–F23 Benchmarks
src/problems/benchmark_23.py - FM Sound Problem
src/problems/fm_sound.py
Optimization Algorithms
- Simulated Annealing
src/algorithms/sa_branch/sa.py - Hill Climbing
src/algorithms/sa_branch/hill_climbing.py - GTO
src/algorithms/gto_branch/gto.py - PSO
src/algorithms/gto_branch/pso.py - GWO
src/algorithms/gto_branch/gwo.py - WOA
src/algorithms/gto_branch/woa.py
Optimization Core
- Problem Interface
src/core/base_problem.py - Optimizer Results
src/core/base_optimizer.py
Experiment Analysis
- Experiment Runner
src/experiments/runner.py - Run Statistics
src/experiments/statistics.py - Plots and Tours
src/experiments/visualizer.py
Other components
- User
Connections 36
- User → Streamlit Dashboard: uses
README.md - User → Experiment CLI: runs
README.md - Streamlit Dashboard → TSP Problem: creates
app.py - Streamlit Dashboard → Simulated Annealing: runs
app.py - Streamlit Dashboard → Hill Climbing: compares
README.md - Streamlit Dashboard → GTO: runs
README.md - Streamlit Dashboard → PSO: compares
README.md - Streamlit Dashboard → GWO: compares
README.md - Streamlit Dashboard → WOA: compares
README.md - Streamlit Dashboard → F1–F23 Benchmarks: selects
app.py - Streamlit Dashboard → FM Sound Problem: selects
app.py - Streamlit Dashboard → Plots and Tours: displays
app.py - Experiment CLI → Experiment Runner: runs
main_cli.py - Experiment CLI → Run Statistics: summarizes
main_cli.py - Experiment CLI → Plots and Tours: generates plots
main_cli.py - TSP Problem → TSPLIB Instances: reads instances
README.md - TSP Problem → Problem Interface: implements
src/problems/tsp.py - Continuous SA Problem → Problem Interface: implements
src/problems/continuous_sa.py - F1–F23 Benchmarks → Problem Interface: implements
src/problems/benchmark_23.py - FM Sound Problem → Problem Interface: implements
src/problems/fm_sound.py - Simulated Annealing → Problem Interface: evaluates
src/algorithms/sa_branch/sa.py - Simulated Annealing → Optimizer Results: returns result
src/algorithms/sa_branch/sa.py - Hill Climbing → Problem Interface: evaluates
src/algorithms/sa_branch/hill_climbing.py - Hill Climbing → Optimizer Results: returns result
src/algorithms/sa_branch/hill_climbing.py - GTO → Problem Interface: evaluates
src/algorithms/gto_branch/gto.py - GTO → Optimizer Results: returns result
src/algorithms/gto_branch/gto.py - PSO → Problem Interface: evaluates
src/algorithms/gto_branch/pso.py - PSO → Optimizer Results: returns result
src/algorithms/gto_branch/pso.py - GWO → Problem Interface: evaluates
src/algorithms/gto_branch/gwo.py - GWO → Optimizer Results: returns result
src/algorithms/gto_branch/gwo.py - WOA → Problem Interface: evaluates
src/algorithms/gto_branch/woa.py - WOA → Optimizer Results: returns result
src/algorithms/gto_branch/woa.py - Experiment Runner → Problem Interface: accepts problems
src/experiments/runner.py - Experiment Runner → Optimizer Results: uses results
src/experiments/runner.py - Plots and Tours → Optimizer Results: plots results
src/experiments/visualizer.py - Plots and Tours → TSP Problem: plots tours
src/experiments/visualizer.py