Changeset 9406
- Timestamp:
- 04/30/13 10:54:02 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.GradientDescent/3.3/LbfgsMakeStep.cs
r8401 r9406 79 79 alglib.minlbfgs.minlbfgsreport rep = new alglib.minlbfgs.minlbfgsreport(); 80 80 alglib.minlbfgs.minlbfgsresults(state.State, ref x, rep); 81 if (rep.terminationtype < 0) { 82 if (rep.terminationtype == -1) 83 throw new OperatorExecutionException(this, "Incorrect parameters were specified."); 84 else if (rep.terminationtype == -2) 85 throw new OperatorExecutionException(this, "Rounding errors prevent further improvement."); 86 else if (rep.terminationtype == -7) 87 throw new OperatorExecutionException(this, "Gradient verification failed."); 88 } 81 89 PointParameter.ActualValue = new RealVector(x); 82 90 }
Note: See TracChangeset
for help on using the changeset viewer.