refactor: Rewrite optimization engine in Rust using samyama-optimizat…#3
Merged
vinod-dega merged 13 commits intomainfrom Jan 22, 2026
Merged
refactor: Rewrite optimization engine in Rust using samyama-optimizat…#3vinod-dega merged 13 commits intomainfrom
vinod-dega merged 13 commits intomainfrom
Conversation
vinod-dega
previously approved these changes
Jan 16, 2026
36534ef
- Reduced num_iterations to 50 and population_size to 20 across all tests - Relaxed assertion thresholds for stochastic algorithms to prevent flaky failures with reduced compute - Should resolve the hanging/slow GitHub Actions workflow
- Use py.allow_threads() around solver calls to release the GIL - This prevents deadlocks when Rayon threads inside the solver try to acquire the GIL to call Python objective functions
- Added tests/test_config.py to centralize test parameters - Increased default iterations to 200 and population to 50 (approx 24s total runtime) - Fixed bugs in rao_algorithms/algorithms.py related to track_history return values - Fixed assertions in test_convergence_history.py
This fixes the CI build error by ensuring the dependency can be cloned by GitHub Actions without private GitLab credentials.
This fixes ModuleNotFoundError in GitHub Actions by making 'tests' a proper Python package, allowing imports like 'from tests.test_config import ...' to work correctly.
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.
…ion crate
Description 📝
GITHUB ISSUE 🎟️
FYI 🙋
Screenshots 📸
Test ✍️