Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/15/19 08:53:12 (6 years ago)
Author:
chaider
Message:

#2971

  • Added Target prefix for parsed onstraints in IntervalConstraintParser
  • Added isChecked validation for constraints in ConstraintAnalyzer
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionConstraintAnalyzer.cs

    r16773 r16780  
    8787    public static Dictionary<IntervalConstraint, bool> CheckConstraints(ISymbolicExpressionTree model,
    8888      IRegressionProblemData problemData) {
    89       var constraints = ((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Constraints;
     89      var constraints = ((RegressionProblemData)problemData).IntervalConstraintsParameter.Value.Constraints.Where(x => x.IsChecked);
    9090      var constraintViolations = new Dictionary<IntervalConstraint, bool>();
    9191      var variableRanges = ((RegressionProblemData)problemData).VariableRanges.VariableIntervals;
     
    147147      var constraintViolations = new Dictionary<string, int>();
    148148
    149       var constraints = problemData.IntervalConstraintsParameter.Value.Constraints;
     149      var constraints = problemData.IntervalConstraintsParameter.Value.Constraints.Where(x => x.IsChecked);
    150150
    151151      if (dataTable.Rows.Count == 0) {
Note: See TracChangeset for help on using the changeset viewer.