Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/11/19 07:53:16 (5 years ago)
Author:
gkronber
Message:

#2994: make branch compile with NamedIntervals branch, disable alglib optguard, copylocal = false

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2994-AutoDiffForIntervals/HeuristicLab.Algorithms.DataAnalysis.ConstrainedNonlinearRegression/3.4/ConstrainedNonlinearRegression.cs

    r16831 r16941  
    250250      }
    251251      var intervalConstraints = problemData.IntervalConstraints;
    252       var dataIntervals = problemData.VariableRanges.VariableIntervals;
     252      var dataIntervals = problemData.VariableRanges.GetIntervals();
    253253
    254254      // convert constants to variables named theta...
     
    362362      alglib.minnlcstate state;
    363363      alglib.minnlcreport rep;
    364       alglib.optguardreport optGuardRep;
     364      //alglib.optguardreport optGuardRep;
    365365      var x0 = thetaValues.ToArray();
    366366
    367367      alglib.minnlccreate(x0.Length, x0, out state);
    368368      alglib.minnlcsetalgoslp(state);        // SLP is more robust but slower
    369       alglib.minnlcsetcond(state, 0, maxIterations);
     369      alglib.minnlcsetcond(state, 1E-6, maxIterations);
    370370      var s = Enumerable.Repeat(1d, x0.Length).ToArray();  // scale is set to unit scale
    371371      alglib.minnlcsetscale(state, s);
     
    374374      alglib.minnlcsetnlc(state, 0, constraintTrees.Count);
    375375
    376       alglib.minnlcoptguardsmoothness(state);
    377       alglib.minnlcoptguardgradient(state, 0.001);
     376      // alglib.minnlcoptguardsmoothness(state);
     377      // alglib.minnlcoptguardgradient(state, 0.001);
    378378
    379379      alglib.minnlcoptimize(state, calculate_jacobian, null, null);
    380380      alglib.minnlcresults(state, out double[] xOpt, out rep);
    381       alglib.minnlcoptguardresults(state, out optGuardRep);
     381      // alglib.minnlcoptguardresults(state, out optGuardRep);
    382382
    383383      var interpreter = new SymbolicDataAnalysisExpressionTreeLinearInterpreter();
Note: See TracChangeset for help on using the changeset viewer.