Fixed warnings spotted by checkgilles.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1369591 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d880dddc55
commit
efb3e07afe
|
@ -140,10 +140,11 @@ public class SimplexSolver extends AbstractLinearOptimizer {
|
|||
if (getIterations() < getMaxIterations() / 2) {
|
||||
Integer minRow = null;
|
||||
int minIndex = tableau.getWidth();
|
||||
final int varStart = tableau.getNumObjectiveFunctions();
|
||||
final int varEnd = tableau.getWidth() - 1;
|
||||
for (Integer row : minRatioPositions) {
|
||||
int i = tableau.getNumObjectiveFunctions();
|
||||
for (; i < tableau.getWidth() - 1 && !row.equals(minRow); i++) {
|
||||
Integer basicRow = tableau.getBasicRow(i);
|
||||
for (int i = varStart; i < varEnd && !row.equals(minRow); i++) {
|
||||
final Integer basicRow = tableau.getBasicRow(i);
|
||||
if (basicRow != null && basicRow.equals(row)) {
|
||||
if (i < minIndex) {
|
||||
minIndex = i;
|
||||
|
|
Loading…
Reference in New Issue