Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/04/11 02:18:27 (14 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.Views/3.3/ValueConfigurationViews/ValueView.cs

    r5110 r5207  
    4646
    4747    private void setValueButton_Click(object sender, EventArgs e) {
    48       var withoutNullValue = Content.ValidValues.Where(x => !(x is NullValue));
    49       var objectSelectorDialog = new ObjectSelectorDialog<IItem>(withoutNullValue.GroupBy(x => ApplicationManager.Manager.GetDeclaringPlugin(x.GetType()).Name));
     48      var typesWithoutNullValue = Content.ValidTypes.Where(x => x != typeof(NullValue));
     49      var instances = typesWithoutNullValue.Select(x => (IItem)Activator.CreateInstance(x));
     50      var groupedInstances = instances.GroupBy(x => ApplicationManager.Manager.GetDeclaringPlugin(x.GetType()).Name);
     51
     52      var objectSelectorDialog = new ObjectSelectorDialog<IItem>(groupedInstances);
    5053      if (objectSelectorDialog.ShowDialog(this) == DialogResult.OK) {
    5154        try {
Note: See TracChangeset for help on using the changeset viewer.