Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/20/20 08:52:25 (5 years ago)
Author:
chaider
Message:

#2971 Removed constraint related parts from branch

Location:
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Interval/Interval.cs

    r17542 r17547  
    263263
    264264      return new Interval(Math.Pow(a.LowerBound, 1.0 / higher), Math.Pow(a.UpperBound, 1.0 / lower));
     265     
    265266    }
    266267
     
    285286      if (a.Contains(0.0)) {
    286287        min = 0.0;
    287     }
     288      }
    288289
    289290      return new Interval(min, max);
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblemData.cs

    r17506 r17547  
    9494      problemData.Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariableParameterName, new ItemSet<StringValue>()));
    9595      problemData.Parameters.Add(new FixedValueParameter<IntervalCollection>(VariableRangesParameterName, "", new IntervalCollection()));
    96       problemData.Parameters.Add(new FixedValueParameter<ProblemDataConstraint>(IntervalConstraintsParameterName, "", new ProblemDataConstraint(problemData)));
    9796      emptyProblemData = problemData;
    9897    }
     
    107106    public IntervalCollection VariableRanges {
    108107      get => VariableRangesParameter.Value;
    109     }
    110 
    111 
    112     public IFixedValueParameter<ProblemDataConstraint> IntervalConstraintsParameter => (IFixedValueParameter<ProblemDataConstraint>)Parameters[IntervalConstraintsParameterName];
    113 
    114     public ProblemDataConstraint IntervalConstraints {
    115       get => IntervalConstraintsParameter.Value;
    116108    }
    117109
     
    148140        Parameters.Add(new FixedValueParameter<IntervalCollection>(VariableRangesParameterName, intervalCollection));
    149141      }
    150       if (!Parameters.ContainsKey(IntervalConstraintsParameterName)) {
    151         Parameters.Add(new FixedValueParameter<ProblemDataConstraint>(IntervalConstraintsParameterName, new ProblemDataConstraint(this)));
    152       }
    153142      RegisterParameterEvents();
    154143    }
     
    180169      var intervalCollection = CalculateDatasetIntervals(this.Dataset);
    181170      Parameters.Add(new FixedValueParameter<IntervalCollection>(VariableRangesParameterName, intervalCollection));
    182       Parameters.Add(new FixedValueParameter<ProblemDataConstraint>(IntervalConstraintsParameterName, new ProblemDataConstraint(this)));
    183171      RegisterParameterEvents();
    184172    }
Note: See TracChangeset for help on using the changeset viewer.