Feat: set OptSolvX as default LP backend; add SBML-FBC→LP bridge#90
Open
xts-Michi wants to merge 30 commits intodraeger-lab:masterfrom
Open
Feat: set OptSolvX as default LP backend; add SBML-FBC→LP bridge#90xts-Michi wants to merge 30 commits intodraeger-lab:masterfrom
OptSolvX as default LP backend; add SBML-FBC→LP bridge#90xts-Michi wants to merge 30 commits intodraeger-lab:masterfrom
Conversation
… ctor) and changed the pom OptSolvX verison to java 8
…nds, S·v=0, objective) into OptSolvX
…ective tests using jdk 8 artifact
…e FbaToOptSolvX preview
draeger
requested changes
Aug 21, 2025
…oting note (JDK ≥17)
…lues), ignore boundary/no-participation species, and multi-species cases with minimal SBML builders
…refs) — OptSolvX is now the sole LP solver
…oded CommonsMath in OptSolvXDemo
OptSolvX as default LP backend; add SBML-FBC→LP bridge prototypeOptSolvX as default LP backend; add SBML-FBC→LP bridge
This was referenced Jan 8, 2026
This was referenced Jan 24, 2026
Collaborator
matthiaskoenig
left a comment
There was a problem hiding this comment.
This looks very good. Can be merged from my side. Could you check if the FBC tests of the SBML test suite are running? If the tests pass this can be merged.
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.
Summary
Switch FBA to OptSolvX by default, introduce an initial SBML-FBC→LP bridge, fix dependency/classpath issues for modern JDKs, remove the legacy SCPSolver/GLPK backend and enable configurable solver selection (Commons Math / ojAlgo) via OptSolvXConfig.
What changed since the last review
NewGLPKSolverand SCPSolver test (SCPSolverIssue); no SCPSolver/GLPK deps remain in code or POM.BridgeConstraintTests) and minor perf tidy-ups in the bridge (cached SBML lists, pre-sized maps).getActiveObjective()in FBA for API/test compatibility.Key changes
1) Default backend = OptSolvX
OptSolvXSolverAdapter.2) SBML-FBC → LP bridge (prototype)
FbaToOptSolvXmaps:Small perf pass: cache SBML lists, pre-size maps.
3) Dependency / classpath
org.apache.commons:commons-math:2.2for legacy ODE API (Math2) next tocommons-math3:3.6.1.xercesImpl,xml-apis,xalan) to avoid JAXP conflicts with modern JDKs (Log4j2 config now clean).local-optsolvxprofile until it is available on Maven Central.4) Cleanup: remove SCPSolver/GLPK
src/test/scripts/**still references old GLPK jars only for the historic wrapper; it’s inert for Maven builds and can be pruned later.5) Tests & layout
Bridge objective:
BridgeObjectiveTest.New:
BridgeConstraintTestschecking S·v=0 at coefficient level:src/test/java/org/simulator/optsolvx.6) Docs
How to test
Typical runtime (E. coli core):
Compatibility
getActiveObjective()restored; tests depending on it pass.