Changeset 18163 for branches/2994-AutoDiffForIntervals/HeuristicLab.Problems.DataAnalysis.Regression.Symbolic.Extensions/NLOptEvaluator.cs
- Timestamp:
- 12/21/21 08:51:49 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2994-AutoDiffForIntervals/HeuristicLab.Problems.DataAnalysis.Regression.Symbolic.Extensions/NLOptEvaluator.cs
r17328 r18163 210 210 constantOptimizationRows, ApplyLinearScalingParameter.ActualValue.Value, Solver, 211 211 out double qDiff, out double[] constraintsBefore, out double[] constraintsAfter, 212 ConstantOptimizationIterations.Value, updateVariableWeights: UpdateVariableWeights, lowerEstimationLimit: EstimationLimitsParameter.ActualValue.Lower, upperEstimationLimit: EstimationLimitsParameter.ActualValue.Upper, updateConstantsInTree: UpdateConstantsInTree, counter: counter); 212 ConstantOptimizationIterations.Value, updateVariableWeights: UpdateVariableWeights, 213 lowerEstimationLimit: EstimationLimitsParameter.ActualValue.Lower, upperEstimationLimit: EstimationLimitsParameter.ActualValue.Upper, 214 updateConstantsInTree: UpdateConstantsInTree, counter: counter); 213 215 214 216 AchievedQualityImprovementParameter.ActualValue = new DoubleValue(qDiff); … … 272 274 if (!updateConstantsInTree) throw new NotSupportedException("not updating tree parameters is not supported"); 273 275 if (!applyLinearScaling) throw new NotSupportedException("application without linear scaling is not supported"); 274 275 276 276 277 using (var state = new ConstrainedNLSInternal(solver, tree, maxIterations, problemData, 0, 0, 0)) { … … 282 283 if (constraintsAfter.Any(cv => cv > 1e-8)) qOpt = qBefore; 283 284 qDiff = qOpt - qBefore; 285 286 if(counter != null) { 287 counter.FunctionEvaluations += state.NumObjectiveFunctionEvaluations; 288 counter.GradientEvaluations += state.NumObjectiveGradientEvaluations; 289 } 290 284 291 return qOpt; 285 292 }
Note: See TracChangeset
for help on using the changeset viewer.