Changeset 17607 for branches/3073_IA_constraint_splitting/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression
- Timestamp:
- 06/18/20 11:35:45 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3073_IA_constraint_splitting/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblemData.cs
r17579 r17607 94 94 problemData.Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariableParameterName, new ItemSet<StringValue>())); 95 95 problemData.Parameters.Add(new FixedValueParameter<IntervalCollection>(VariableRangesParameterName, "", new IntervalCollection())); 96 problemData.Parameters.Add(new FixedValueParameter<ProblemDataConstraint>(IntervalConstraintsParameterName, "", new ProblemDataConstraint(problemData))); 96 97 emptyProblemData = problemData; 97 98 } … … 107 108 get => VariableRangesParameter.Value; 108 109 } 110 111 public IFixedValueParameter<ProblemDataConstraint> IntervalConstraintsParameter => 112 (IFixedValueParameter<ProblemDataConstraint>) Parameters[IntervalConstraintsParameterName]; 113 114 public ProblemDataConstraint IntervalConstraints => IntervalConstraintsParameter.Value; 109 115 110 116 … … 140 146 Parameters.Add(new FixedValueParameter<IntervalCollection>(VariableRangesParameterName, intervalCollection)); 141 147 } 148 149 if (!Parameters.ContainsKey(IntervalConstraintsParameterName)) { 150 Parameters.Add(new FixedValueParameter<ProblemDataConstraint>(IntervalConstraintsParameterName, new ProblemDataConstraint(this))); 151 } 142 152 RegisterParameterEvents(); 143 153 } … … 169 179 var intervalCollection = CalculateDatasetIntervals(this.Dataset); 170 180 Parameters.Add(new FixedValueParameter<IntervalCollection>(VariableRangesParameterName, intervalCollection)); 181 Parameters.Add(new FixedValueParameter<ProblemDataConstraint>(IntervalConstraintsParameterName, new ProblemDataConstraint(this))); 171 182 RegisterParameterEvents(); 172 183 }
Note: See TracChangeset
for help on using the changeset viewer.