Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/04/11 02:18:27 (13 years ago)
Author:
cneumuel
Message:

#1215

  • lots of memory-consumption improvements
  • validValues -> validTypes (this saves memory!)
  • changed manipulators; modifications are less significant, out-of-bound-values are resampled instead of set to lower or upper bound
  • changed the way a base-level algorithm gets executed -> introduced AlgorithmExecutor
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ValueConfigurations/ValueConfiguration.cs

    r5184 r5207  
    6060      set {
    6161        if (this.actualValue != value) {
    62           RegisterActualValueEvents();
     62          DeregisterActualValueEvents();
    6363          ClearParameterConfigurations();
    6464          this.actualValue = value;
     
    6666          OnValueChanged();
    6767          OnToStringChanged();
    68           DeregisterActualValueEvents();
     68          RegisterActualValueEvents();
    6969        }
    7070      }
     
    8787    public ValueConfiguration(IItem value, Type valueDataType) {
    8888      this.ParameterConfigurations = new ItemList<IParameterConfiguration>();
    89       var validValues = new ItemSet<IItem>(ApplicationManager.Manager.GetInstances(valueDataType).Select(x => (IItem)x).OrderBy(x => x.ItemName));
    90       this.ActualValue = new ConstrainedValue(value, valueDataType, validValues, false);
     89      var validTypes = ApplicationManager.Manager.GetTypes(valueDataType).OrderBy(x => x.Name).ToArray();
     90      this.ActualValue = new ConstrainedValue(value, valueDataType, validTypes, false);
    9191      this.IsOptimizable = true;
    9292      if (actualValue.ValueDataType == typeof(IntValue)) {
Note: See TracChangeset for help on using the changeset viewer.