Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/10/11 19:26:58 (14 years ago)
Author:
cneumuel
Message:

#1215

  • implemented optimization of problem parameters
Location:
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/OptimizableView.cs

    r5653 r5665  
    11using System;
     2using System.Linq;
    23using HeuristicLab.Core.Views;
    34using HeuristicLab.Data;
     
    4445
    4546          if (pc != null) {
    46             this.viewHost.Content = ((IParameterConfiguration)Content).ValueConfigurations;
    47           } else if(vc != null) {
     47            if (pc is SingleValuedParameterConfiguration) {
     48              this.viewHost.Content = ((ParameterizedValueConfiguration)pc.ValueConfigurations.Single()).ParameterConfigurations;
     49            } else {
     50              this.viewHost.Content = pc.ValueConfigurations;
     51            }
     52          } else if (vc != null) {
    4853            var rvc = Content as RangeValueConfiguration;
    4954            if (rvc != null) {
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/ValueConfigurationViews/ValueConfigurationCheckedItemCollectionView.cs

    r5654 r5665  
    5252            return new NullValueConfiguration();
    5353          } else if(value is IParameterizedItem) {
    54             return new ParameterizedValueConfiguration(value, value.GetType());
     54            return new ParameterizedValueConfiguration(value, value.GetType(), true);
    5555          } else {
    5656            return new RangeValueConfiguration(value, value.GetType());
Note: See TracChangeset for help on using the changeset viewer.