Free cookie consent management tool by TermsFeed Policy Generator

Changeset 17555


Ignore:
Timestamp:
05/25/20 15:43:46 (4 years ago)
Author:
chaider
Message:

#2971 changed getter/setter from modelbounds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionSolution.cs

    r17553 r17555  
    9999
    100100    public IntervalCollection ModelBoundsCollection {
    101       get => (IntervalCollection)this[ModelBoundsResultName].Value;
     101      get {
     102        if (!ContainsKey(ModelBoundsResultName)) return null;
     103        return (IntervalCollection)this[ModelBoundsResultName].Value;
     104      }
    102105      private set {
    103         if (ContainsKey(ModelBoundsResultName))
     106        if (ContainsKey(ModelBoundsResultName)) {
    104107          this[ModelBoundsResultName].Value = value;
     108        } else {
     109          Add(new Result(ModelBoundsResultName, "Results concerning the derivation of symbolic regression solution", value));
     110        }
     111         
    105112      }
    106113    }
Note: See TracChangeset for help on using the changeset viewer.