Changeset 15371 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators
- Timestamp:
- 09/19/17 10:49:02 (7 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Property svn:mergeinfo changed
/branches/SimplifierViewsProgress/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression (added) merged: 15318-15319,15321,15353-15354
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4
- Property svn:mergeinfo changed
/branches/SimplifierViewsProgress/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4 (added) merged: 15318-15319,15321,15353-15354
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionConstantOptimizationEvaluator.cs
r14951 r15371 156 156 int maxIterations, bool updateVariableWeights = true, 157 157 double lowerEstimationLimit = double.MinValue, double upperEstimationLimit = double.MaxValue, 158 bool updateConstantsInTree = true ) {158 bool updateConstantsInTree = true, Action<double[], double, object> iterationCallback = null) { 159 159 160 160 // numeric constants in the tree become variables for constant opt … … 210 210 alglib.ndimensional_pfunc function_cx_1_func = CreatePFunc(func); 211 211 alglib.ndimensional_pgrad function_cx_1_grad = CreatePGrad(func_grad); 212 alglib.ndimensional_rep xrep = (p, f, obj) => iterationCallback(p, f, obj); 212 213 213 214 try { 214 215 alglib.lsfitcreatefg(x, y, c, n, m, k, false, out state); 215 216 alglib.lsfitsetcond(state, 0.0, 0.0, maxIterations); 217 alglib.lsfitsetxrep(state, iterationCallback != null); 216 218 //alglib.lsfitsetgradientcheck(state, 0.001); 217 alglib.lsfitfit(state, function_cx_1_func, function_cx_1_grad, null, null);219 alglib.lsfitfit(state, function_cx_1_func, function_cx_1_grad, xrep, null); 218 220 alglib.lsfitresults(state, out retVal, out c, out rep); 219 221 }
Note: See TracChangeset
for help on using the changeset viewer.