Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/22/12 11:15:13 (12 years ago)
Author:
mkommend
Message:

#1877: Corrected plugin dependencies and ToString methods in MetaOpt.

Location:
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/RangeConstraints
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/RangeConstraints/DoubleValueRange.cs

    r6090 r8087  
    1818      }
    1919    }
    20    
     20
    2121    public DoubleValueRange(DoubleValue lowerBound, DoubleValue upperBound, DoubleValue stepSize) : base(lowerBound, upperBound, stepSize) { }
    22     public DoubleValueRange() { }
    2322    [StorableConstructor]
    2423    protected DoubleValueRange(bool deserializing) : base(deserializing) { }
     
    5958      double range = UpperBound.Value - LowerBound.Value;
    6059      double diff = Math.Abs(a.Value - b.Value);
    61       return Math.Max(0, (range - (diff*2)) / range);
     60      return Math.Max(0, (range - (diff * 2)) / range);
    6261    }
    6362  }
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/RangeConstraints/IntValueRange.cs

    r5522 r8087  
    11using System;
    22using System.Collections.Generic;
    3 using System.Linq;
    4 using System.Text;
     3using HeuristicLab.Common;
     4using HeuristicLab.Core;
    55using HeuristicLab.Data;
    6 using HeuristicLab.Common;
    76using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    8 using HeuristicLab.Core;
    97
    108namespace HeuristicLab.Problems.MetaOptimization {
     
    1311
    1412    public IntValueRange(IntValue lowerBound, IntValue upperBound, IntValue stepSize) : base(lowerBound, upperBound, stepSize) { }
    15     public IntValueRange() { }
    1613    [StorableConstructor]
    1714    protected IntValueRange(bool deserializing) : base(deserializing) { }
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/RangeConstraints/PercentValueRange.cs

    r5522 r8087  
    11using System;
    22using System.Collections.Generic;
    3 using System.Linq;
    4 using System.Text;
     3using HeuristicLab.Common;
     4using HeuristicLab.Core;
    55using HeuristicLab.Data;
    6 using HeuristicLab.Common;
    76using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    8 using HeuristicLab.Core;
    97
    108namespace HeuristicLab.Problems.MetaOptimization {
     
    1311
    1412    public PercentValueRange(PercentValue lowerBound, PercentValue upperBound, PercentValue stepSize) : base(lowerBound, upperBound, stepSize) { }
    15     public PercentValueRange() { }
    1613    [StorableConstructor]
    1714    protected PercentValueRange(bool deserializing) : base(deserializing) { }
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/RangeConstraints/Range.cs

    r6090 r8087  
    8686    }
    8787
    88     public Range() { }
    8988    [StorableConstructor]
    9089    protected Range(bool deserializing) : base(deserializing) { }
    91     protected Range(Range<T> original, Cloner cloner) : base(original, cloner) {
     90    protected Range(Range<T> original, Cloner cloner)
     91      : base(original, cloner) {
    9292      this.LowerBound = cloner.Clone(original.LowerBound);
    9393      this.UpperBound = cloner.Clone(original.UpperBound);
Note: See TracChangeset for help on using the changeset viewer.