Runtime-configurable MPI solver, headless Python plotting, and CI smoke workflow#1
Closed
Kandil2001 with Copilot wants to merge 3 commits into
Closed
Runtime-configurable MPI solver, headless Python plotting, and CI smoke workflow#1Kandil2001 with Copilot wants to merge 3 commits into
Kandil2001 with Copilot wants to merge 3 commits into
Conversation
Copilot
AI
changed the title
[WIP] Enhance usability and robustness of TSP MPI solver
Runtime-configurable MPI solver, headless Python plotting, and CI smoke workflow
Jul 6, 2026
Kandil2001
approved these changes
Jul 6, 2026
Owner
|
made it better |
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.
This PR makes the solver easier to run and automate by moving key runtime knobs from compile-time constants to CLI flags, hardening failure paths, and adding non-MATLAB plotting + CI smoke coverage. It keeps the core algorithm and output contract intact while improving reproducibility and operability.
Solver runtime configuration + robustness (
script/tsp_mpi.c)--replicas,--steps,--swap-interval,--initial-temp,--temp-decay,--seed,--deterministic,--helpdata/berlin52.tsp)malloc/free)fopen/mallocfailure handling and consistent cleanup/abort behaviorsolution.txt,my_route.txtBuild/layout updates (
Makefile)BIN_DIR := binbin/tsp_solver(still built withmpicc)run-examplePHONY target with a short deterministicmpirunexampleMATLAB-free plotting path (
script/plot_results.py)solution.txtmy_route.txtdata/berlin52.tsp)CI workflow (
.github/workflows/ci.yml)make-np 2, short steps)contents: read)Docs updates (
README.md,CONTRIBUTING.md)