Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better handling on solver names #983

Merged
merged 5 commits into from
Jan 16, 2025
Merged

Conversation

JasonMarechal25
Copy link
Contributor

@JasonMarechal25 JasonMarechal25 commented Jan 13, 2025

Introduce "SolverConfig" as a helper class to encapsulate a solver name. SolverConfig is used to perform check and operations on solver names and encapsulated string logic like upper/lower casing, solver name equality and so on

Solver Factory Enhancements:

  • Introduced SolverConfig class to encapsulate solver configuration details and support case-insensitive solver name comparisons. (src/cpp/multisolver_interface/SolverConfig.cpp, src/cpp/multisolver_interface/CMakeLists.txt) [1] [2]

  • Refactored SolverFactory methods to accept SolverConfig objects, improving the clarity and robustness of solver creation logic. (src/cpp/multisolver_interface/SolverFactory.cpp) [1] [2] [3]

By introducing the SolverConfig class and updating the relevant components to use this new class, the codebase is now more maintainable and less error-prone, with improved handling of solver configurations.

Helper to handle solver_names casse
@JasonMarechal25 JasonMarechal25 merged commit 031f1a7 into develop Jan 16, 2025
24 of 25 checks passed
@JasonMarechal25 JasonMarechal25 deleted the feature/solver_config branch January 16, 2025 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants