Changeset 16773 for branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Timestamp:
- 04/09/19 14:58:24 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionConstraintAnalyzer.cs
r16756 r16773 85 85 } 86 86 87 static Dictionary<IntervalConstraint, bool> CheckConstraints(ISymbolicExpressionTree model,87 public static Dictionary<IntervalConstraint, bool> CheckConstraints(ISymbolicExpressionTree model, 88 88 IRegressionProblemData problemData) { 89 //var constraints = IntervalConstraintsParser.Parse(((RegressionProblemData)problemData).IntervalConstraints.Value);90 89 var constraints = ((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Constraints; 91 90 var constraintViolations = new Dictionary<IntervalConstraint, bool>(); … … 101 100 } 102 101 103 static Dictionary<IntervalConstraint, bool> CheckConstraints(ISymbolicRegressionModel model,102 public static Dictionary<IntervalConstraint, bool> CheckConstraints(ISymbolicRegressionModel model, 104 103 IRegressionProblemData problemData) { 105 104 return CheckConstraints(model.SymbolicExpressionTree, problemData); 106 105 } 107 106 108 static bool CheckConstraint(ISymbolicExpressionTree model, Dictionary<string, Interval> variableRanges,107 public static bool CheckConstraint(ISymbolicExpressionTree model, Dictionary<string, Interval> variableRanges, 109 108 IntervalConstraint constraint) { 110 109 var intervalInterpreter = new IntervalInterpreter(); … … 148 147 var constraintViolations = new Dictionary<string, int>(); 149 148 150 //var constraints = IntervalConstraintsParser.Parse(problemData.IntervalConstraints.Value);151 149 var constraints = problemData.IntervalConstraintsParameter.Value.Constraints; 152 150
Note: See TracChangeset
for help on using the changeset viewer.