Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/30/12 17:21:52 (12 years ago)
Author:
spimming
Message:

#1853:

  • allow to set range constraints
  • when parameterizing, special case for fixed value parameters
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysisService/HeuristicLab.Encodings.ParameterConfigurationTreeEncoding/3.3/ParameterConfigurations/ParameterConfiguration.cs

    r7840 r7938  
    556556      var clonedValue = this.ActualValue.Value != null ? (IItem)this.ActualValue.Value.Clone() : null;
    557557      if (clonedValue != null) AdaptValidValues(parameter, clonedValue);
    558       parameter.Value = clonedValue;
     558      if (parameter is IFixedValueParameter<IntValue>) {
     559        ((IntValue)parameter.Value).Value = ((IntValue)clonedValue).Value;
     560      } else if (parameter is FixedValueParameter<DoubleValue>) {
     561        ((DoubleValue)parameter.Value).Value = ((DoubleValue)clonedValue).Value;
     562      } else {
     563        parameter.Value = clonedValue;
     564      }
    559565    }
    560566
Note: See TracChangeset for help on using the changeset viewer.