MATH-1376
Fixed incorrect iteration number (variable was not updated). Thanks to Thomas Weise for the report and fix.
This commit is contained in:
parent
fc9d93db68
commit
66a775c9fe
|
@ -159,7 +159,8 @@ public class SimplexOptimizer extends MultivariateOptimizer {
|
||||||
int iteration = 0;
|
int iteration = 0;
|
||||||
final ConvergenceChecker<PointValuePair> checker = getConvergenceChecker();
|
final ConvergenceChecker<PointValuePair> checker = getConvergenceChecker();
|
||||||
while (true) {
|
while (true) {
|
||||||
if (getIterations() > 0) {
|
iteration = getIterations();
|
||||||
|
if (iteration > 0) {
|
||||||
boolean converged = true;
|
boolean converged = true;
|
||||||
for (int i = 0; i < simplex.getSize(); i++) {
|
for (int i = 0; i < simplex.getSize(); i++) {
|
||||||
PointValuePair prev = previous[i];
|
PointValuePair prev = previous[i];
|
||||||
|
|
Loading…
Reference in New Issue