Changeset 17881
- Timestamp:
- 03/12/21 08:39:53 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3073_IA_constraint_splitting/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/IntervalUtil.cs
r17791 r17881 2 2 using System.Collections.Generic; 3 3 using System.Linq; 4 using System.Text;5 using System.Threading.Tasks;6 4 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 7 5 … … 46 44 47 45 return error; 48 //Interval resultInterval;49 //if (!constraint.IsDerivative) {50 // resultInterval = estimator.GetModelBound(solution, regionRanges);51 //} else {52 // var tree = solution;53 // for (var i = 0; i < constraint.NumberOfDerivations; ++i) {54 // if (!estimator.IsCompatible(tree) || !DerivativeCalculator.IsCompatible(tree)) {55 // throw new ArgumentException("Cube, Root, Power symbols are not supported.");56 // }57 58 // tree = DerivativeCalculator.Derive(tree, constraint.Variable);59 // }60 61 // resultInterval = estimator.GetModelBound(tree, regionRanges);62 //}63 64 //var error = 0.0;65 66 //if (!constraint.Interval.Contains(resultInterval.LowerBound)) {67 // error += Math.Abs(resultInterval.LowerBound - constraint.Interval.LowerBound);68 //}69 70 //if (!constraint.Interval.Contains(resultInterval.UpperBound)) {71 // error += Math.Abs(resultInterval.UpperBound - constraint.Interval.UpperBound);72 //}73 74 //error *= constraint.Weight;75 76 //return error;77 46 } 78 47
Note: See TracChangeset
for help on using the changeset viewer.