Week 4 - First Solver Adapter and Setup

In the past week, I integrated the Commons Math Solver into the new abstraction layer and set up the entire development environment so that everything runs stably.

Progress:

  • Built the ILPSolver interface and fully implemented the first adapter (CommonsMathSolver).

  • Created a new class (LPSolution) to standardize result handling.

  • Set up a demo class (SolverDemo) to test how the algorithm works.

Challenges and Solutions:

  • Repeated ClassNotFoundException: The main cause was a non-standard project structure, which is the default in IntelliJ. Switching to the Maven standard and synchronizing all build and run settings resolved the error.

  • Java version conflicts: Different configurations in Maven, IntelliJ, and JAVA_HOME led to build errors. After aligning everything to Java 22 and updating the POM, the build is now stable.

Status:

  • The foundation for the abstraction layer is in place and ready for further solver integrations.

  • The Commons Math adapter is running and produces correct results.

Next Steps:

  • Add more comprehensive and systematic unit tests for edge cases.

  • Start implementing a second solver adapter (OjAlgoSolver).

  • Rework the test structure to clearly separate small standard tests from larger models.

  • Begin with a simple README and basic structure for documentation.

  • Get mentor feedback on the interface, error handling, and solver automation.

That’s it for this week, see you next week!

Project Details:

Kommentare

Beliebte Posts aus diesem Blog

OptSolvX in SBSCL: A Solver-Agnostic LP Core (GSoC 2025 Final Report)

Week 2 – Community Bonding Wrap-Up

Week 5 - Unit Testing, OjAlgo Integration, and Code Cleanup