Changeset 16780
- Timestamp:
- 04/15/19 08:53:12 (6 years ago)
- Location:
- branches/2971_named_intervals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionConstraintAnalyzer.cs
r16773 r16780 87 87 public static Dictionary<IntervalConstraint, bool> CheckConstraints(ISymbolicExpressionTree model, 88 88 IRegressionProblemData problemData) { 89 var constraints = ((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Constraints ;89 var constraints = ((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Constraints.Where(x => x.IsChecked); 90 90 var constraintViolations = new Dictionary<IntervalConstraint, bool>(); 91 91 var variableRanges = ((RegressionProblemData)problemData).VariableRanges.VariableIntervals; … … 147 147 var constraintViolations = new Dictionary<string, int>(); 148 148 149 var constraints = problemData.IntervalConstraintsParameter.Value.Constraints ;149 var constraints = problemData.IntervalConstraintsParameter.Value.Constraints.Where(x => x.IsChecked); 150 150 151 151 if (dataTable.Rows.Count == 0) { -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Parser/IntervalConstraintsParser.cs
r16778 r16780 70 70 var lowerBound = ParseIntervalBounds(match.Groups[4].Value); 71 71 var upperBound = ParseIntervalBounds(match.Groups[6].Value); 72 var constraint = new IntervalConstraint( match.Groups[0].Value);73 constraint.Expression = "Target 72 var constraint = new IntervalConstraint("Target:" + match.Groups[0].Value); 73 constraint.Expression = "Target:" + match.Groups[0].Value; 74 74 constraint.Definition = "Target " + match.Groups[1].Value.Trim(); 75 75 constraint.Variable = match.Groups[1].Value.Trim();
Note: See TracChangeset
for help on using the changeset viewer.