Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9140 for branches/CMAES


Ignore:
Timestamp:
01/09/13 23:30:15 (12 years ago)
Author:
abeham
Message:

#1961: Added creator to project, fixed wiring in CMA-ES algorithm, fixed visualization of random landscape, removed useless function in test functions

Location:
branches/CMAES
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/CMAES/HeuristicLab.Algorithms.CMAEvolutionStrategy/3.3/CMAAnalyzer.cs

    r9132 r9140  
    115115        realVector.Rows["Axis" + i.ToString()].Values.Add(vector[i]);
    116116
     117      DataTable stdDevs;
     118      if (results.ContainsKey("StandardDeviations")) {
     119        stdDevs = (DataTable)results["StandardDeviations"].Value;
     120      } else {
     121        stdDevs = new DataTable("StandardDeviations");
     122        for (int i = 0; i < vector.Length; i++)
     123          stdDevs.Rows.Add(new DataRow("Axis" + i.ToString()));
     124        results.Add(new Result("StandardDeviations", stdDevs));
     125      }
     126      for (int i = 0; i < vector.Length; i++)
     127        stdDevs.Rows["Axis" + i.ToString()].Values.Add(sp.C[i, i]);
     128
    117129      return base.Apply();
    118130    }
  • branches/CMAES/HeuristicLab.Encodings.RealVectorEncoding/3.3/HeuristicLab.Encodings.RealVectorEncoding-3.3.csproj

    r9132 r9140  
    173173  </ItemGroup>
    174174  <ItemGroup>
     175    <Compile Include="Creators\PredefinedRealVectorCreator.cs" />
    175176    <Compile Include="Interfaces\IRealVectorMultiNeighborhoodShakingOperator.cs" />
    176177    <Compile Include="ParticleOperators\RealVectorParticleCreator.cs" />
  • branches/CMAES/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RandomEvaluator.cs

    r9122 r9140  
    8686    }
    8787
     88    public override double Evaluate2D(double x, double y) {
     89      var random = new System.Random();
     90      return random.NextDouble();
     91    }
     92
    8893    protected override double EvaluateFunction(RealVector point) {
    8994      return RandomParameter.ActualValue.NextDouble();
  • branches/CMAES/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs

    r9129 r9140  
    125125    public override IDeepCloneable Clone(Cloner cloner) {
    126126      return new SingleObjectiveTestFunctionProblem(this, cloner);
    127     }
    128 
    129     private bool IsNotFieldReferenced(IOperator x) {
    130       return !(x == strategyVectorCreator
    131         || x == strategyVectorCrossover
    132         || x == strategyVectorManipulator);
    133127    }
    134128
Note: See TracChangeset for help on using the changeset viewer.