Changeset 17506 for branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators
- Timestamp:
- 04/10/20 14:04:59 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionSingleObjectiveConstraintConstOptEvaluator.cs
r17504 r17506 91 91 if (constraint.Variable != null && !variableRanges.ContainsKey(constraint.Variable)) 92 92 throw new ArgumentException($"The given variable {constraint.Variable} in the constraint does not exists in the model.", nameof(IntervalConstraintsParser)); 93 if (!constraint.IsDerivati on) {93 if (!constraint.IsDerivative) { 94 94 var res = intervalInterpreter.GetSymbolicExpressionTreeInterval(solution, variableRanges); 95 95 if (!constraint.Interval.Contains(res)) { … … 98 98 } else { 99 99 var tree = solution; 100 for (var i = 0; i < constraint.NumberOfDerivation ; ++i) {100 for (var i = 0; i < constraint.NumberOfDerivations; ++i) { 101 101 tree = DerivativeCalculator.Derive(tree, constraint.Variable); 102 102 }
Note: See TracChangeset
for help on using the changeset viewer.