Changeset 17506 for branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective
- Timestamp:
- 04/10/20 14:04:59 (5 years ago)
- Location:
- branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective
- Files:
-
- 2 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 } -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionConstraintAnalyzer.cs
r17504 r17506 105 105 Interval resultInterval; 106 106 107 if (!constraint.IsDerivati on) {107 if (!constraint.IsDerivative) { 108 108 resultInterval = intervalInterpreter.GetSymbolicExpressionTreeInterval(solution, variableRanges); 109 109 } else { 110 110 var tree = solution; 111 for (var i = 0; i < constraint.NumberOfDerivation ; ++i) {111 for (var i = 0; i < constraint.NumberOfDerivations; ++i) { 112 112 tree = DerivativeCalculator.Derive(tree, constraint.Variable); 113 113 }
Note: See TracChangeset
for help on using the changeset viewer.