Skip to content

Commit 6d86426

Browse files
committed
Removed unreachable code.
1 parent 7a673c7 commit 6d86426

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

hipparchus-optim/src/main/java/org/hipparchus/optim/nonlinear/vector/constrained/QPDualActiveSolver.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,7 @@ public LagrangeSolution doOptimize() {
429429
t2 = dualStep.getValue();
430430
dropIndex = dualStep.getKey();
431431
t = FastMath.min(t1, t2);
432-
if (t >= Double.POSITIVE_INFINITY) {
433-
return new LagrangeSolution(new ArrayRealVector(0,0), new ArrayRealVector(0,0), 0.0); // infeasible
434-
} else if (t == t1) {
432+
if (t == t1) {
435433
break; // primal full step (exit from dual step loop)
436434
} else {
437435
//Manage dual step

0 commit comments

Comments
 (0)