Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/08/17 10:41:30 (7 years ago)
Author:
pfleck
Message:

#1666 Added a delay for hiding the progress bar to avoid closing the progress during animation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SimplifierViewsProgress/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/InteractiveSymbolicRegressionSolutionSimplifierView.cs

    r15353 r15356  
    5151        applyLinearScaling: true, maxIterations: constOptIterations, updateVariableWeights: true, lowerEstimationLimit: regressionModelModel.LowerEstimationLimit, upperEstimationLimit: regressionModelModel.UpperEstimationLimit,
    5252        iterationCallback: (args, func, obj) => {
    53           // (maxIterations + 2) iterations are reported; Math.Min neccecary because of floating-point inaccuracies
    54           progress.ProgressValue = Math.Min(progress.ProgressValue + 1.0 / (constOptIterations + 2), 1);
     53          double newProgressValue = progress.ProgressValue + 1.0 / (constOptIterations + 2); // (maxIterations + 2) iterations are reported
     54          progress.ProgressValue = Math.Min(newProgressValue, 1.0);
    5555        });
    5656      return model.SymbolicExpressionTree;
Note: See TracChangeset for help on using the changeset viewer.