Skip to content

Commit 40cc415

Browse files
committed
Update ConvexSolver.java
1 parent bb8ca81 commit 40cc415

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/ojalgo/optimisation/convex/ConvexSolver.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,8 @@ public ConvexSolver build(final ExpressionsBasedModel model) {
571571

572572
Boolean projection = options.convex().getProjection();
573573

574-
if (nbEqus > 0 && nbInes > 0 && (Boolean.TRUE.equals(projection) || (projection == null && (nbVars >= 80) && (nbVars / nbEqus <= 2)))) {
574+
if (nbEqus > 0 && nbInes > 0 && nbEqus <= nbVars
575+
&& (Boolean.TRUE.equals(projection) || (projection == null && (nbVars >= 80) && (nbVars / nbEqus <= 2)))) {
575576

576577
ConvexSolver solver = new NullSpaceASS(options, data);
577578

0 commit comments

Comments
 (0)