Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8157


Ignore:
Timestamp:
06/29/12 10:02:54 (12 years ago)
Author:
ascheibe
Message:

#1877 fixed metaopt for ParameterVisibilityTest

File:
1 edited

Legend:

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

    r6489 r8157  
    7373      get { return (ValueParameter<IntValue>)Parameters[RepetitionsParameterName]; }
    7474    }
    75 
    76     public IValueParameter<IIntValueManipulator> IntValueManipulatorParameter {
    77       get { return (ValueParameter<IIntValueManipulator>)Parameters[IntValueManipulatorParameterName]; }
    78     }
    79 
    80     public IValueParameter<IDoubleValueManipulator> DoubleValueManipulatorParameter {
    81       get { return (ValueParameter<IDoubleValueManipulator>)Parameters[DoubleValueManipulatorParameterName]; }
     75    public IConstrainedValueParameter<IIntValueManipulator> IntValueManipulatorParameter {
     76      get { return (ConstrainedValueParameter<IIntValueManipulator>)Parameters[IntValueManipulatorParameterName]; }
     77    }
     78    public IConstrainedValueParameter<IDoubleValueManipulator> DoubleValueManipulatorParameter {
     79      get { return (ConstrainedValueParameter<IDoubleValueManipulator>)Parameters[DoubleValueManipulatorParameterName]; }
    8280    }
    8381    public IValueParameter<StringValue> QualityMeasureNameParameter {
    8482      get { return (ValueParameter<StringValue>)Parameters[QualityMeasureNameName]; }
     83    }
     84    public IConstrainedValueParameter<IIntValueCrossover> IntValueCrossoverParameter {
     85      get { return (ConstrainedValueParameter<IIntValueCrossover>)Parameters[IntValueCrossoverParameterName]; }
     86    }
     87    public IConstrainedValueParameter<IDoubleValueCrossover> DoubleValueCrossoverParameter {
     88      get { return (ConstrainedValueParameter<IDoubleValueCrossover>)Parameters[DoubleValueCrossoverParameterName]; }
    8589    }
    8690    #endregion
     
    179183    [StorableHook(HookType.AfterDeserialization)]
    180184    private void AfterDeserializationHook() {
    181       if(!Parameters.ContainsKey(QualityMeasureNameName)) Parameters.Add(new ValueParameter<StringValue>(QualityMeasureNameName, "The name of the quality result of the base-level algorithm. Subresults can be accessed by dot separator.", new StringValue("BestQuality"))); // backwards compatibility
     185      if (!Parameters.ContainsKey(QualityMeasureNameName)) Parameters.Add(new ValueParameter<StringValue>(QualityMeasureNameName, "The name of the quality result of the base-level algorithm. Subresults can be accessed by dot separator.", new StringValue("BestQuality"))); // backwards compatibility
    182186      RegisterParameterEvents();
    183187    }
Note: See TracChangeset for help on using the changeset viewer.