removed an unneeded else
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@574168 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3c00d3be11
commit
cfab1fd925
|
@ -573,12 +573,11 @@ public abstract class DirectSearchOptimizer {
|
||||||
return (o2 == null) ? 0 : +1;
|
return (o2 == null) ? 0 : +1;
|
||||||
} else if (o2 == null) {
|
} else if (o2 == null) {
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
}
|
||||||
double cost1 = ((PointCostPair) o1).cost;
|
double cost1 = ((PointCostPair) o1).cost;
|
||||||
double cost2 = ((PointCostPair) o2).cost;
|
double cost2 = ((PointCostPair) o2).cost;
|
||||||
return (cost1 < cost2) ? -1 : ((o1 == o2) ? 0 : +1);
|
return (cost1 < cost2) ? -1 : ((o1 == o2) ? 0 : +1);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Simplex. */
|
/** Simplex. */
|
||||||
|
|
Loading…
Reference in New Issue