Free cookie consent management tool by TermsFeed Policy Generator

Changeset 17944


Ignore:
Timestamp:
04/15/21 08:59:36 (4 years ago)
Author:
gkronber
Message:

#3117: catch a new error value for lsfit returned by new alglib version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionConstantOptimizationEvaluator.cs

    r17931 r17944  
    272272        alglib.lsfitsetcond(state, 0.0, maxIterations);
    273273        alglib.lsfitsetxrep(state, iterationCallback != null);
    274         //alglib.lsfitsetgradientcheck(state, 0.001);
    275274        alglib.lsfitfit(state, function_cx_1_func, function_cx_1_grad, xrep, rowEvaluationsCounter);
    276275        alglib.lsfitresults(state, out retVal, out c, out rep);
     
    285284
    286285      //retVal == -7  => constant optimization failed due to wrong gradient
    287       if (retVal != -7) {
     286      //          -8  => optimizer detected  NAN / INF  in  the target
     287      //                 function and/ or gradient
     288      if (retVal != -7 && retVal != -8) {
    288289        if (applyLinearScaling) {
    289290          var tmp = new double[c.Length - 2];
Note: See TracChangeset for help on using the changeset viewer.