Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/14/14 14:46:00 (10 years ago)
Author:
abeham
Message:

#2174: Major refactoring:

  • ParameterVector is only a temporary datastructure that is constructed for evaluation purposes only
  • Multiple permutations are allowed
  • Special support for single-vector encodings (to apply specialized algorithms such as PSO or CMA-ES)
  • General support for multi-vector encoding
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SimSharp/HeuristicLab.Problems.Programmable/3.3/Operators/ParameterVectorManipulator.cs

    r10753 r10850  
    2222using HeuristicLab.Common;
    2323using HeuristicLab.Core;
    24 using HeuristicLab.Encodings.BinaryVectorEncoding;
    25 using HeuristicLab.Encodings.IntegerVectorEncoding;
    26 using HeuristicLab.Encodings.PermutationEncoding;
    27 using HeuristicLab.Encodings.RealVectorEncoding;
    2824using HeuristicLab.Operators;
    2925using HeuristicLab.Optimization;
    30 using HeuristicLab.Parameters;
    3126using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3227
    3328namespace HeuristicLab.Problems.Programmable {
    34   [Item("ParameterVector Manipulator", "Applies different manipulators to change a parameter vector.")]
     29  [Item("ParameterVector Manipulator", "Applies different manipulators to change a multi vector encoding.")]
    3530  [StorableClass]
    3631  public class ParameterVectorManipulator : InstrumentedOperator, IManipulator {
    37     public ILookupParameter<BinaryVector> BinaryVectorParameter {
    38       get { return (ILookupParameter<BinaryVector>)Parameters["BinaryVector"]; }
    39     }
    40 
    41     public ILookupParameter<IntegerVector> IntegerVectorParameter {
    42       get { return (ILookupParameter<IntegerVector>)Parameters["IntegerVector"]; }
    43     }
    44 
    45     public ILookupParameter<RealVector> RealVectorParameter {
    46       get { return (ILookupParameter<RealVector>)Parameters["RealVector"]; }
    47     }
    48 
    49     public ILookupParameter<Permutation> PermutationParameter {
    50       get { return (ILookupParameter<Permutation>)Parameters["Permutation"]; }
    51     }
    5232
    5333    [StorableConstructor]
     
    5636      : base(original, cloner) { }
    5737    public ParameterVectorManipulator() {
    58       Parameters.Add(new LookupParameter<BinaryVector>("BinaryVector", "The binary vector that links into the parameter vector."));
    59       Parameters.Add(new LookupParameter<IntegerVector>("IntegerVector", "The integer vector that links into the parameter vector."));
    60       Parameters.Add(new LookupParameter<RealVector>("RealVector", "The real vector that links into the parameter vector."));
    61       Parameters.Add(new LookupParameter<Permutation>("Permutation", "The permutation that links into the parameter vector."));
    6238    }
    6339
Note: See TracChangeset for help on using the changeset viewer.