Changeset 16937
- Timestamp:
- 05/09/19 13:47:14 (6 years ago)
- Location:
- branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Interval/IntervalConstraint.cs
r16935 r16937 28 28 [Item("Interval Constraint", "Constraint on intervals.")] 29 29 public sealed class IntervalConstraint : Item { 30 [Storable (Name = "Expression")]30 [Storable] 31 31 private string expression; 32 32 public string Expression { … … 45 45 } 46 46 47 [Storable (Name = "Variable")]47 [Storable] 48 48 private string variable; 49 49 public string Variable { … … 58 58 } 59 59 60 [Storable (Name = "Target")]60 [Storable] 61 61 private string target; 62 62 public string Target { … … 75 75 } 76 76 77 [Storable (Name = "NumberOfDerivation")]77 [Storable] 78 78 private int numberOfDerivation; 79 79 public int NumberOfDerivation { … … 90 90 } 91 91 92 [Storable (Name = "Interval")]92 [Storable] 93 93 private Interval interval; 94 94 public Interval Interval { … … 103 103 } 104 104 105 [Storable (Name = "InclusiveLowerBound")]105 [Storable] 106 106 private bool inclusiveLowerBound; 107 107 public bool InclusiveLowerBound { … … 116 116 } 117 117 118 [Storable (Name = "InclusiveUpperBound")]118 [Storable] 119 119 private bool inclusiveUpperBound; 120 120 public bool InclusiveUpperBound { … … 129 129 } 130 130 131 [Storable (Name = "Enabled")]131 [Storable] 132 132 private bool enabled; 133 133 public bool Enabled { -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/ProblemDataConstraint.cs
r16935 r16937 38 38 "\u2202²'y'/\u2202'x'² in ]-1 .. inf.["; 39 39 40 [Storable (Name = "Input")]40 [Storable] 41 41 private string input; 42 42 public string Input { … … 49 49 } 50 50 51 [Storable (Name = "Constraints")]51 [Storable] 52 52 private IEnumerable<IntervalConstraint> constraints; 53 53 public IEnumerable<IntervalConstraint> Constraints { 54 get => constraints .ToList();54 get => constraints; 55 55 set { 56 56 if (constraints == value) return; … … 78 78 public ProblemDataConstraint() :base () { 79 79 this.Input = exampleInput; 80 this.constraints = new CheckedItemList<IntervalConstraint>();80 this.constraints = new List<IntervalConstraint>(); 81 81 this.ProblemData = null; 82 82 } … … 84 84 public ProblemDataConstraint(IRegressionProblemData problemData) : base() { 85 85 this.Input = exampleInput; 86 this.constraints = new CheckedItemList<IntervalConstraint>();86 this.constraints = new List<IntervalConstraint>(); 87 87 this.ProblemData = problemData; 88 88 }
Note: See TracChangeset
for help on using the changeset viewer.