Changeset 17881


Ignore:
Timestamp:
03/12/21 08:39:53 (16 months ago)
Author:
chaider
Message:

#3073 Removed unused code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3073_IA_constraint_splitting/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/IntervalUtil.cs

    r17791 r17881  
    22using System.Collections.Generic;
    33using System.Linq;
    4 using System.Text;
    5 using System.Threading.Tasks;
    64using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    75
     
    4644
    4745      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;
    7746    }
    7847
Note: See TracChangeset for help on using the changeset viewer.