- Timestamp:
- 05/08/19 15:51:16 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Interval/IntervalConstraintsParser.cs
r16903 r16924 59 59 var inclLowerBound = match.Groups[5].Value.Trim() == "["; 60 60 var inclUpperBound = match.Groups[9].Value.Trim() == "]"; 61 var is Derivation = false;61 var isEnabled = true; 62 62 var numberOfDerivation = 0; 63 63 var interval = new Interval(lowerBound, upperBound); 64 64 65 var constraint = new IntervalConstraint(expression, variable, parsedTarget, numberOfDerivation, interval, inclLowerBound, inclUpperBound, true);65 var constraint = new IntervalConstraint(expression, variable, parsedTarget, numberOfDerivation, interval, inclLowerBound, inclUpperBound, isEnabled); 66 66 67 67 yield return constraint; … … 110 110 var expression = match.Groups[0].Value; 111 111 var parsedTarget = derivationTarget; 112 var is Derivation= true;112 var isEnabled = true; 113 113 var inclLowerBound = match.Groups[12].Value.Trim() == "["; 114 114 var inclUpperBound = match.Groups[16].Value.Trim() == "]"; … … 117 117 var interval = new Interval(lowerBound, upperBound); 118 118 119 var constraint = new IntervalConstraint(expression, variable, parsedTarget, numberOfDerivation, interval, inclLowerBound, inclUpperBound, true);119 var constraint = new IntervalConstraint(expression, variable, parsedTarget, numberOfDerivation, interval, inclLowerBound, inclUpperBound, isEnabled); 120 120 121 121 yield return constraint;
Note: See TracChangeset
for help on using the changeset viewer.