Changeset 9990 for stable/HeuristicLab.Problems.TestFunctions
- Timestamp:
- 09/19/13 10:32:22 (11 years ago)
- Location:
- stable
- Files:
-
- 21 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 9980-9982
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.TestFunctions
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.TestFunctions (added) merged: 9980-9982
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/AckleyEvaluator.cs
r9456 r9990 35 35 [StorableClass] 36 36 public class AckleyEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 37 public override string FunctionName { get { return "Ackley"; } } 37 38 /// <summary> 38 39 /// Returns false as the Ackley function is a minimization problem. -
stable/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/BealeEvaluator.cs
r9456 r9990 35 35 [StorableClass] 36 36 public class BealeEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 37 public override string FunctionName { get { return "Beale"; } } 37 38 /// <summary> 38 39 /// Returns false as the Beale function is a minimization problem. -
stable/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/BoothEvaluator.cs
r9456 r9990 34 34 [StorableClass] 35 35 public class BoothEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 36 public override string FunctionName { get { return "Booth"; } } 36 37 /// <summary> 37 38 /// Returns false as the Booth function is a minimization problem. -
stable/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/GriewankEvaluator.cs
r9456 r9990 36 36 [StorableClass] 37 37 public class GriewankEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 38 public override string FunctionName { get { return "Griewank"; } } 38 39 /// <summary> 39 40 /// Returns false as the Griewank function is a minimization problem. -
stable/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/LevyEvaluator.cs
r9456 r9990 34 34 [StorableClass] 35 35 public class LevyEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 36 public override string FunctionName { get { return "Levy"; } } 36 37 /// <summary> 37 38 /// Returns false as the Levy function is a minimization problem. -
stable/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/MatyasEvaluator.cs
r9456 r9990 34 34 [StorableClass] 35 35 public class MatyasEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 36 public override string FunctionName { get { return "Matyas"; } } 36 37 /// <summary> 37 38 /// Returns false as the Matyas function is a minimization problem. -
stable/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/MultinormalEvaluator.cs
r9456 r9990 35 35 [StorableClass] 36 36 public class MultinormalEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 37 public override string FunctionName { get { return "Multinormal"; } } 37 38 38 39 private ItemList<RealVector> centers { -
stable/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RandomEvaluator.cs
r9456 r9990 35 35 [StorableClass] 36 36 public class RandomEvaluator : SingleObjectiveTestFunctionProblemEvaluator, IStochasticOperator { 37 public override string FunctionName { get { return "Random"; } } 37 38 /// <summary> 38 39 /// It does not really matter. -
stable/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RastriginEvaluator.cs
r9456 r9990 36 36 [StorableClass] 37 37 public class RastriginEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 38 public override string FunctionName { get { return "Rastrigin"; } } 38 39 /// <summary> 39 40 /// Returns false as the Rastrigin function is a minimization problem. -
stable/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RosenbrockEvaluator.cs
r9456 r9990 38 38 [StorableClass] 39 39 public class RosenbrockEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 40 public override string FunctionName { get { return "Rosenbrock"; } } 40 41 /// <summary> 41 42 /// Returns false as the Rosenbrock function is a minimization problem. -
stable/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SchwefelEvaluator.cs
r9456 r9990 34 34 [StorableClass] 35 35 public class SchwefelEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 36 public override string FunctionName { get { return "Schwefel"; } } 36 37 /// <summary> 37 38 /// Returns false as the Schwefel (sine root) function is a minimization problem. -
stable/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SingleObjectiveTestFunctionProblemEvaluator.cs
r9456 r9990 35 35 [StorableClass] 36 36 public abstract class SingleObjectiveTestFunctionProblemEvaluator : SingleSuccessorOperator, ISingleObjectiveTestFunctionProblemEvaluator { 37 /// <summary> 38 /// The name of the function 39 /// </summary> 40 public abstract string FunctionName { get; } 37 41 /// <summary> 38 42 /// These operators should not change their name through the GUI -
stable/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SphereEvaluator.cs
r9456 r9990 36 36 [StorableClass] 37 37 public class SphereEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 38 public override string FunctionName { get { return "Sphere"; } } 38 39 /// <summary> 39 40 /// Returns false as the Sphere function is a minimization problem. -
stable/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SumSquaresEvaluator.cs
r9456 r9990 33 33 [StorableClass] 34 34 public class SumSquaresEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 35 public override string FunctionName { get { return "SumSquares"; } } 35 36 /// <summary> 36 37 /// Returns false as the Sum Squares function is a minimization problem. -
stable/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/ZakharovEvaluator.cs
r9456 r9990 33 33 [StorableClass] 34 34 public class ZakharovEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 35 public override string FunctionName { get { return "Zakharov"; } } 35 36 /// <summary> 36 37 /// Returns false as the Zakharov function is a minimization problem. -
stable/HeuristicLab.Problems.TestFunctions/3.3/HeuristicLab.Problems.TestFunctions-3.3.csproj
r9300 r9990 110 110 <Compile Include="Evaluators\RandomEvaluator.cs" /> 111 111 <Compile Include="Improvers\SingleObjectiveTestFunctionImprovementOperator.cs" /> 112 <Compile Include="Instances\SOTFData.cs" /> 113 <Compile Include="Instances\SOTFDataDescriptor.cs" /> 114 <Compile Include="Instances\SOTFInstanceProvider.cs" /> 112 115 <Compile Include="MoveEvaluators\RandomAdditiveMoveEvaluator.cs" /> 113 116 <Compile Include="PathRelinkers\SingleObjectiveTestFunctionPathRelinker.cs" /> … … 227 230 <Private>False</Private> 228 231 </ProjectReference> 232 <ProjectReference Include="..\..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj"> 233 <Project>{3540e29e-4793-49e7-8ee2-fea7f61c3994}</Project> 234 <Name>HeuristicLab.Problems.Instances-3.3</Name> 235 <Private>False</Private> 236 </ProjectReference> 229 237 </ItemGroup> 230 238 <ItemGroup> … … 245 253 </BootstrapperPackage> 246 254 </ItemGroup> 247 <ItemGroup />248 255 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 249 256 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
stable/HeuristicLab.Problems.TestFunctions/3.3/Interfaces/ISingleObjectiveTestFunctionProblemEvaluator.cs
r9456 r9990 35 35 int MinimumProblemSize { get; } 36 36 int MaximumProblemSize { get; } 37 string FunctionName { get; } 37 38 38 39 ILookupParameter<RealVector> PointParameter { get; } -
stable/HeuristicLab.Problems.TestFunctions/3.3/Plugin.cs.frame
r9462 r9990 38 38 [PluginDependency("HeuristicLab.Optimization", "3.3")] 39 39 [PluginDependency("HeuristicLab.Optimization.Operators", "3.3")] 40 [PluginDependency("HeuristicLab.Problems.Instances", "3.3")] 40 41 [PluginDependency("HeuristicLab.Parameters", "3.3")] 41 42 [PluginDependency("HeuristicLab.Persistence", "3.3")] -
stable/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r9456 r9990 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 22 25 using HeuristicLab.Analysis; 23 26 using HeuristicLab.Common; … … 29 32 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 33 using HeuristicLab.PluginInfrastructure; 31 using System; 32 using System.Collections.Generic; 33 using System.Linq; 34 using HeuristicLab.Problems.Instances; 34 35 35 36 namespace HeuristicLab.Problems.TestFunctions { … … 37 38 [StorableClass] 38 39 [Creatable("Problems")] 39 public sealed class SingleObjectiveTestFunctionProblem : SingleObjectiveHeuristicOptimizationProblem<ISingleObjectiveTestFunctionProblemEvaluator, IRealVectorCreator>, IStorableContent {40 public sealed class SingleObjectiveTestFunctionProblem : SingleObjectiveHeuristicOptimizationProblem<ISingleObjectiveTestFunctionProblemEvaluator, IRealVectorCreator>, IStorableContent, IProblemInstanceConsumer<SOTFData> { 40 41 public string Filename { get; set; } 41 42 … … 324 325 try { 325 326 BestKnownSolutionParameter.Value = Evaluator.GetBestKnownSolution(ProblemSize.Value); 326 } 327 catch (ArgumentException e) { 327 } catch (ArgumentException e) { 328 328 ErrorHandling.ShowErrorDialog(e); 329 329 ProblemSize.Value = Evaluator.MinimumProblemSize; … … 406 406 } 407 407 #endregion 408 409 public void Load(SOTFData data) { 410 Name = data.Name; 411 Description = data.Description; 412 Evaluator = data.Evaluator; 413 } 408 414 } 409 415 }
Note: See TracChangeset
for help on using the changeset viewer.