Changeset 16749


Ignore:
Timestamp:
04/03/19 14:39:50 (3 weeks ago)
Author:
abeham
Message:

#2521: fixed RealVectorEncoding

Location:
branches/2521_ProblemRefactoring
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Encodings.RealVectorEncoding/3.3/Interfaces/IRealVectorSolutionsOperator.cs

    r13403 r16749  
    2424namespace HeuristicLab.Encodings.RealVectorEncoding {
    2525  public interface IRealVectorSolutionsOperator : IRealVectorOperator {
    26     IScopeTreeLookupParameter<RealVector> RealVectorsParameter { get; }
     26    IScopeTreeLookupParameter<RealVector> RealVectorParameter { get; }
    2727  }
    2828}
  • branches/2521_ProblemRefactoring/HeuristicLab.Encodings.RealVectorEncoding/3.3/ParticleOperators/RealVectorSwarmUpdater.cs

    r16723 r16749  
    5656      get { return (IScopeTreeLookupParameter<DoubleValue>)Parameters["NeighborBestQuality"]; }
    5757    }
    58     public IScopeTreeLookupParameter<RealVector> RealVectorsParameter {
     58    public IScopeTreeLookupParameter<RealVector> RealVectorParameter {
    5959      get { return (IScopeTreeLookupParameter<RealVector>)Parameters["RealVectors"]; }
    6060    }
     
    134134    }
    135135    private ItemArray<RealVector> RealVectors {
    136       get { return RealVectorsParameter.ActualValue; }
     136      get { return RealVectorParameter.ActualValue; }
    137137    }
    138138    private ItemArray<RealVector> PersonalBest {
  • branches/2521_ProblemRefactoring/HeuristicLab.Encodings.RealVectorEncoding/3.3/ParticleOperators/SPSOSwarmUpdater.cs

    r16723 r16749  
    5555      get { return (IScopeTreeLookupParameter<DoubleValue>)Parameters["NeighborBestQuality"]; }
    5656    }
    57     public IScopeTreeLookupParameter<RealVector> RealVectorsParameter {
    58       get { return (IScopeTreeLookupParameter<RealVector>)Parameters["RealVectors"]; }
     57    public IScopeTreeLookupParameter<RealVector> RealVectorParameter {
     58      get { return (IScopeTreeLookupParameter<RealVector>)Parameters["RealVector"]; }
    5959    }
    6060    public IScopeTreeLookupParameter<RealVector> PersonalBestParameter {
     
    169169      var max = MaximizationParameter.ActualValue.Value;
    170170      // Update of the personal bests
    171       var points = RealVectorsParameter.ActualValue;
     171      var points = RealVectorParameter.ActualValue;
    172172      var qualities = QualityParameter.ActualValue;
    173173      var particles = points.Select((p, i) => new { Particle = p, Index = i })
  • branches/2521_ProblemRefactoring/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorEncoding.cs

    r16723 r16749  
    307307    private void ConfigureRealVectorSolutionsOperators(IEnumerable<IRealVectorSolutionsOperator> solutionsOperators) {
    308308      foreach (var solutionsOperator in solutionsOperators)
    309         solutionsOperator.RealVectorsParameter.ActualName = Name;
     309        solutionsOperator.RealVectorParameter.ActualName = Name;
    310310    }
    311311    private void ConfigureRealVectorBoundedOperators(IEnumerable<IRealVectorBoundedOperator> boundedOperators) {
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/Plugin.cs.frame

    r16723 r16749  
    3636  [PluginDependency("HeuristicLab.Encodings.PermutationEncoding", "3.3")]
    3737  [PluginDependency("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding", "3.4")]
    38   [PluginDependency("HeuristicLab.Encodings.LinearLinkageEncoding", "3.3")]
     38  [PluginDependency("HeuristicLab.Encodings.LinearLinkageEncoding", "3.4")]
    3939  [PluginDependency("HeuristicLab.Optimization", "3.3")]
    4040  [PluginDependency("HeuristicLab.Parameters", "3.3")]
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.TestFunctions/3.3/Analyzers/BestSingleObjectiveTestFunctionSolutionAnalyzer.cs

    r16723 r16749  
    4444      get { return (LookupParameter<BoolValue>)Parameters["Maximization"]; }
    4545    }
    46     public IScopeTreeLookupParameter<RealVector> RealVectorsParameter {
     46    public IScopeTreeLookupParameter<RealVector> RealVectorParameter {
    4747      get { return (IScopeTreeLookupParameter<RealVector>)Parameters["RealVectors"]; }
    4848    }
     
    8585
    8686      MaximizationParameter.Hidden = true;
    87       RealVectorsParameter.Hidden = true;
     87      RealVectorParameter.Hidden = true;
    8888      QualityParameter.Hidden = true;
    8989      BestSolutionParameter.Hidden = true;
     
    100100
    101101    public override IOperation Apply() {
    102       ItemArray<RealVector> realVectors = RealVectorsParameter.ActualValue;
     102      ItemArray<RealVector> realVectors = RealVectorParameter.ActualValue;
    103103      ItemArray<DoubleValue> qualities = QualityParameter.ActualValue;
    104104      bool max = MaximizationParameter.ActualValue.Value;
Note: See TracChangeset for help on using the changeset viewer.