Changeset 15356 for branches/SimplifierViewsProgress/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4
- Timestamp:
- 09/08/17 10:41:30 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SimplifierViewsProgress/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/InteractiveSymbolicRegressionSolutionSimplifierView.cs
r15353 r15356 51 51 applyLinearScaling: true, maxIterations: constOptIterations, updateVariableWeights: true, lowerEstimationLimit: regressionModelModel.LowerEstimationLimit, upperEstimationLimit: regressionModelModel.UpperEstimationLimit, 52 52 iterationCallback: (args, func, obj) => { 53 // (maxIterations + 2) iterations are reported; Math.Min neccecary because of floating-point inaccuracies54 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); 55 55 }); 56 56 return model.SymbolicExpressionTree;
Note: See TracChangeset
for help on using the changeset viewer.