Changeset 18027 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.Algorithms.GradientDescent/3.3/LbfgsMakeStep.cs
- Timestamp:
- 07/20/21 18:13:55 (3 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Algorithms.GradientDescent/3.3/LbfgsMakeStep.cs
r17180 r18027 71 71 public override IOperation Apply() { 72 72 var state = State; 73 bool @continue = alglib.minlbfgs .minlbfgsiteration(state.State);73 bool @continue = alglib.minlbfgsiteration(state.State); 74 74 TerminationCriterionParameter.ActualValue = new BoolValue(!@continue); 75 75 if (@continue) { 76 76 PointParameter.ActualValue = new RealVector(state.State.x); 77 77 } else { 78 double[] x = new double[state.State.x.Length]; 79 alglib.minlbfgs.minlbfgsreport rep = new alglib.minlbfgs.minlbfgsreport(); 80 alglib.minlbfgs.minlbfgsresults(state.State, ref x, rep); 78 alglib.minlbfgsresults(state.State, out var x, out var rep); 81 79 if (rep.terminationtype < 0) { 82 80 if (rep.terminationtype == -1)
Note: See TracChangeset
for help on using the changeset viewer.