Skip to content

Commit

Permalink
Update LinearSolver.java
Browse files Browse the repository at this point in the history
  • Loading branch information
apete committed Jan 19, 2025
1 parent fb3554e commit 308c6a1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/java/org/ojalgo/optimisation/linear/LinearSolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -691,11 +691,15 @@ public SimplexTableauSolver build(final ConvexData convexBuilder, final Optimisa
@Override
public SimplexTableauSolver build(final ExpressionsBasedModel model) {

SimplexTableau tableau = SimplexTableauSolver.build(model, SimplexTableau.newTableauFactory(model.options));
Options options = model.options;

Function<LinearStructure, SimplexTableau> tableauFactory = SimplexTableau.newTableauFactory(options);

SimplexTableauSolver solver = new SimplexTableauSolver(tableau, model.options);
SimplexTableau tableau = SimplexTableauSolver.build(model, tableauFactory);

if (model.options.validate) {
SimplexTableauSolver solver = new SimplexTableauSolver(tableau, options);

if (options.validate) {
solver.setValidator(this.newValidator(model));
}

Expand Down

0 comments on commit 308c6a1

Please sign in to comment.