Changeset 3170 for trunk/sources/HeuristicLab.Problems.TestFunctions
- Timestamp:
- 03/22/10 13:41:31 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.TestFunctions
- Files:
-
- 1 added
- 6 deleted
- 13 edited
- 5 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3
- Property svn:ignore
-
old new 2 2 bin 3 3 obj 4 HeuristicLabProblemsTestFunctions SingleObjectivePlugin.cs4 HeuristicLabProblemsTestFunctionsPlugin.cs
-
- Property svn:ignore
-
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/AckleyEvaluator.cs
r3154 r3170 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 27 28 namespace HeuristicLab.Problems.TestFunctions .SingleObjective{28 namespace HeuristicLab.Problems.TestFunctions { 29 29 /// <summary> 30 30 /// Ackley Function<br/> … … 34 34 [Item("AckleyEvaluator", "Evaluates the Ackley function on a given point. The optimum of this function is 0 at the origin.")] 35 35 [StorableClass] 36 public class AckleyEvaluator : SingleObjectiveTestFunction Evaluator {36 public class AckleyEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 37 37 /// <summary> 38 38 /// Returns false as the Ackley function is a minimization problem. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/BealeEvaluator.cs
r3154 r3170 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 27 28 namespace HeuristicLab.Problems.TestFunctions .SingleObjective{28 namespace HeuristicLab.Problems.TestFunctions { 29 29 /// <summary> 30 30 /// Beale Function<br/> … … 34 34 [Item("BealeEvaluator", "Evaluates the Beale function on a given point. The optimum of this function is 0 at (3,0.5).")] 35 35 [StorableClass] 36 public class BealeEvaluator : SingleObjectiveTestFunction Evaluator {36 public class BealeEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 37 37 /// <summary> 38 38 /// Returns false as the Beale function is a minimization problem. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/BoothEvaluator.cs
r3154 r3170 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 27 28 namespace HeuristicLab.Problems.TestFunctions .SingleObjective{28 namespace HeuristicLab.Problems.TestFunctions { 29 29 /// <summary> 30 30 /// Booth Function<br/> … … 34 34 [Item("BoothEvaluator", "Evaluates the Booth function on a given point. The optimum of this function is 0 at (1,3).")] 35 35 [StorableClass] 36 public class BoothEvaluator : SingleObjectiveTestFunction Evaluator {36 public class BoothEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 37 37 /// <summary> 38 38 /// Returns false as the Booth function is a minimization problem. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/GriewangkEvaluator.cs
r3154 r3170 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 27 28 namespace HeuristicLab.Problems.TestFunctions .SingleObjective{28 namespace HeuristicLab.Problems.TestFunctions { 29 29 /// <summary> 30 30 /// Griewangk Function<br/> … … 34 34 [Item("GriewangkEvaluator", "Evaluates the Griewangk function on a given point. The optimum of this function is 0 at the origin.")] 35 35 [StorableClass] 36 public class GriewangkEvaluator : SingleObjectiveTestFunction Evaluator {36 public class GriewangkEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 37 37 /// <summary> 38 38 /// Returns false as the Griewangk function is a minimization problem. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/LevyEvaluator.cs
r3154 r3170 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 27 28 namespace HeuristicLab.Problems.TestFunctions .SingleObjective{28 namespace HeuristicLab.Problems.TestFunctions { 29 29 /// <summary> 30 30 /// Levy Function<br/> … … 34 34 [Item("LevyEvaluator", "Evaluates the Levy function on a given point. The optimum of this function is 0 at (1,1,...,1).")] 35 35 [StorableClass] 36 public class LevyEvaluator : SingleObjectiveTestFunction Evaluator {36 public class LevyEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 37 37 /// <summary> 38 38 /// Returns false as the Levy function is a minimization problem. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/MatyasEvaluator.cs
r3154 r3170 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 27 28 namespace HeuristicLab.Problems.TestFunctions .SingleObjective{28 namespace HeuristicLab.Problems.TestFunctions { 29 29 /// <summary> 30 30 /// Matyas Function<br/> … … 34 34 [Item("MatyasEvaluator", "Evaluates the Matyas function on a given point. The optimum of this function is 0 at the origin.")] 35 35 [StorableClass] 36 public class MatyasEvaluator : SingleObjectiveTestFunction Evaluator {36 public class MatyasEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 37 37 /// <summary> 38 38 /// Returns false as the Beale function is a minimization problem. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RastriginEvaluator.cs
r3154 r3170 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 27 28 namespace HeuristicLab.Problems.TestFunctions .SingleObjective{28 namespace HeuristicLab.Problems.TestFunctions { 29 29 /// <summary> 30 30 /// Rastrigin Function<br/> … … 34 34 [Item("RastriginEvaluator", "Evaluates the Rastrigin function on a given point. The optimum of this function is 0 at the origin.")] 35 35 [StorableClass] 36 public class RastriginEvaluator : SingleObjectiveTestFunction Evaluator {36 public class RastriginEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 37 37 /// <summary> 38 38 /// Returns false as the Rastrigin function is a minimization problem. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RosenbrockEvaluator.cs
r3154 r3170 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 27 28 namespace HeuristicLab.Problems.TestFunctions .SingleObjective{28 namespace HeuristicLab.Problems.TestFunctions { 29 29 /// <summary> 30 30 /// Rosenbrock Function<br/> … … 34 34 [Item("RosenbrockEvaluator", "Evaluates the Rosenbrock function on a given point. The optimum of this function is 0 at (1,1,...,1).")] 35 35 [StorableClass] 36 public class RosenbrockEvaluator : SingleObjectiveTestFunction Evaluator {36 public class RosenbrockEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 37 37 /// <summary> 38 38 /// Returns false as the Rosenbrock function is a minimization problem. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SchwefelEvaluator.cs
r3154 r3170 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 27 28 namespace HeuristicLab.Problems.TestFunctions .SingleObjective{28 namespace HeuristicLab.Problems.TestFunctions { 29 29 /// <summary> 30 30 /// Schwefel Function (Sine Root)<br/> … … 34 34 [Item("SchwefelEvaluator", "Evaluates the Schwefel function on a given point. The optimum of this function is 0 at (420.968746453712,420.968746453712,...,420.968746453712).")] 35 35 [StorableClass] 36 public class SchwefelEvaluator : SingleObjectiveTestFunction Evaluator {36 public class SchwefelEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 37 37 /// <summary> 38 38 /// Returns false as the Rosenbrock function is a minimization problem. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SphereEvaluator.cs
r3154 r3170 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 27 28 namespace HeuristicLab.Problems.TestFunctions .SingleObjective{28 namespace HeuristicLab.Problems.TestFunctions { 29 29 /// <summary> 30 30 /// Sphere Function<br/> … … 34 34 [Item("SphereEvaluator", "Evaluates the Sphere function on a given point. The optimum of this function is 0 at the origin.")] 35 35 [StorableClass] 36 public class SphereEvaluator : SingleObjectiveTestFunction Evaluator {36 public class SphereEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 37 37 /// <summary> 38 38 /// Returns false as the Rosenbrock function is a minimization problem. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/ZakharovEvaluator.cs
r3154 r3170 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 27 28 namespace HeuristicLab.Problems.TestFunctions .SingleObjective{28 namespace HeuristicLab.Problems.TestFunctions { 29 29 /// <summary> 30 30 /// Zakharov Function<br/> … … 34 34 [Item("ZakharovEvaluator", "Evaluates the Zakharov function on a given point. The optimum of this function is 0 at the origin.")] 35 35 [StorableClass] 36 public class ZakharovEvaluator : SingleObjectiveTestFunction Evaluator {36 public class ZakharovEvaluator : SingleObjectiveTestFunctionProblemEvaluator { 37 37 /// <summary> 38 38 /// Returns false as the Ackley function is a minimization problem. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/HeuristicLab.Problems.TestFunctions-3.3.csproj
r3163 r3170 9 9 <OutputType>Library</OutputType> 10 10 <AppDesignerFolder>Properties</AppDesignerFolder> 11 <RootNamespace>HeuristicLab.Problems.TestFunctions .SingleObjective</RootNamespace>12 <AssemblyName>HeuristicLab.Problems.TestFunctions .SingleObjective-3.3</AssemblyName>11 <RootNamespace>HeuristicLab.Problems.TestFunctions</RootNamespace> 12 <AssemblyName>HeuristicLab.Problems.TestFunctions-3.3</AssemblyName> 13 13 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> 14 14 <FileAlignment>512</FileAlignment> … … 93 93 <Compile Include="Evaluators\RosenbrockEvaluator.cs" /> 94 94 <Compile Include="Evaluators\SchwefelEvaluator.cs" /> 95 <Compile Include="Evaluators\SingleObjectiveTestFunction Evaluator.cs" />95 <Compile Include="Evaluators\SingleObjectiveTestFunctionProblemEvaluator.cs" /> 96 96 <Compile Include="Evaluators\SphereEvaluator.cs" /> 97 97 <Compile Include="Evaluators\ZakharovEvaluator.cs" /> 98 <Compile Include="HeuristicLabProblemsTestFunctions SingleObjectivePlugin.cs" />99 <Compile Include="Interfaces\ISingleObjectiveTestFunction Evaluator.cs" />100 <Compile Include="Interfaces\ISingleObjectiveTestFunction SolutionsVisualizer.cs" />101 <Compile Include="SingleObjectiveTestFunction .cs" />98 <Compile Include="HeuristicLabProblemsTestFunctionsPlugin.cs" /> 99 <Compile Include="Interfaces\ISingleObjectiveTestFunctionProblemEvaluator.cs" /> 100 <Compile Include="Interfaces\ISingleObjectiveTestFunctionProblemSolutionsVisualizer.cs" /> 101 <Compile Include="SingleObjectiveTestFunctionProblem.cs" /> 102 102 <None Include="HeuristicLab.snk" /> 103 <None Include="HeuristicLabProblemsTestFunctions SingleObjectivePlugin.cs.frame" />103 <None Include="HeuristicLabProblemsTestFunctionsPlugin.cs.frame" /> 104 104 <None Include="Properties\AssemblyInfo.frame" /> 105 105 </ItemGroup> … … 165 165 166 166 call PreBuildEvent.cmd 167 SubWCRev "%25ProjectDir%25\" "%25ProjectDir%25\HeuristicLabProblemsTestFunctions SingleObjectivePlugin.cs.frame" "%25ProjectDir%25\HeuristicLabProblemsTestFunctionsSingleObjectivePlugin.cs"</PreBuildEvent>167 SubWCRev "%25ProjectDir%25\" "%25ProjectDir%25\HeuristicLabProblemsTestFunctionsPlugin.cs.frame" "%25ProjectDir%25\HeuristicLabProblemsTestFunctionsPlugin.cs"</PreBuildEvent> 168 168 </PropertyGroup> 169 169 </Project> -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/HeuristicLabProblemsTestFunctionsPlugin.cs.frame
r3163 r3170 22 22 using HeuristicLab.PluginInfrastructure; 23 23 24 namespace HeuristicLab.Problems.TestFunctions .SingleObjective{24 namespace HeuristicLab.Problems.TestFunctions { 25 25 /// <summary> 26 /// Plugin class for HeuristicLab.Problems.TestFunctions .SingleObjectiveplugin26 /// Plugin class for HeuristicLab.Problems.TestFunctions plugin 27 27 /// </summary> 28 [Plugin("HeuristicLab.Problems.TestFunctions .SingleObjective", "3.3.0.$WCREV$")]29 [PluginFile("HeuristicLab.Problems.TestFunctions .SingleObjective-3.3.dll", PluginFileType.Assembly)]28 [Plugin("HeuristicLab.Problems.TestFunctions", "3.3.0.$WCREV$")] 29 [PluginFile("HeuristicLab.Problems.TestFunctions-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Collections", "3.3")] 31 31 [PluginDependency("HeuristicLab.Common", "3.2")] … … 38 38 [PluginDependency("HeuristicLab.Parameters", "3.3")] 39 39 [PluginDependency("HeuristicLab.Persistence", "3.3")] 40 public class HeuristicLabProblemsTestFunctions SingleObjectivePlugin : PluginBase {40 public class HeuristicLabProblemsTestFunctionsPlugin : PluginBase { 41 41 } 42 42 } -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Interfaces/ISingleObjectiveTestFunctionProblemEvaluator.cs
r3163 r3170 25 25 using HeuristicLab.Optimization; 26 26 27 namespace HeuristicLab.Problems.TestFunctions .SingleObjective{27 namespace HeuristicLab.Problems.TestFunctions { 28 28 /// <summary> 29 29 /// An interface which represents an evaluation operator for single objective test functions. 30 30 /// </summary> 31 public interface ISingleObjectiveTestFunction Evaluator : ISingleObjectiveEvaluator {31 public interface ISingleObjectiveTestFunctionProblemEvaluator : ISingleObjectiveEvaluator { 32 32 bool Maximization { get; } 33 33 DoubleMatrix Bounds { get; } -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Interfaces/ISingleObjectiveTestFunctionProblemSolutionsVisualizer.cs
r3163 r3170 24 24 using HeuristicLab.Optimization; 25 25 26 namespace HeuristicLab.Problems.TestFunctions .SingleObjective{26 namespace HeuristicLab.Problems.TestFunctions { 27 27 /// <summary> 28 28 /// An interface which represents an operator for visualizing solutions of single objective test functions. 29 29 /// </summary> 30 public interface ISingleObjectiveTestFunction SolutionsVisualizer : ISingleObjectiveSolutionsVisualizer {30 public interface ISingleObjectiveTestFunctionProblemSolutionsVisualizer : ISingleObjectiveSolutionsVisualizer { 31 31 ILookupParameter<RealVector> PointParameter { get; } 32 32 } -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Properties/AssemblyInfo.frame
r3150 r3170 26 26 // set of attributes. Change these attribute values to modify the information 27 27 // associated with an assembly. 28 [assembly: AssemblyTitle("HeuristicLab.Problems.TestFunctions .SingleObjective")]29 [assembly: AssemblyDescription("HeuristicLab Single ObjectiveTest Functions classes")]28 [assembly: AssemblyTitle("HeuristicLab.Problems.TestFunctions")] 29 [assembly: AssemblyDescription("HeuristicLab Test Functions classes")] 30 30 [assembly: AssemblyConfiguration("")] 31 31 [assembly: AssemblyCompany("")] -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r3163 r3170 34 34 using HeuristicLab.PluginInfrastructure; 35 35 36 namespace HeuristicLab.Problems.TestFunctions .SingleObjective{36 namespace HeuristicLab.Problems.TestFunctions { 37 37 [Item("SingleObjective TestFunction", "Test function with real valued inputs and a single objective.")] 38 38 [StorableClass] 39 39 [Creatable("Problems")] 40 public sealed class SingleObjectiveTestFunction : ParameterizedNamedItem, ISingleObjectiveProblem {40 public sealed class SingleObjectiveTestFunctionProblem : ParameterizedNamedItem, ISingleObjectiveProblem { 41 41 public override Image ItemImage { 42 42 get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Type; } … … 62 62 get { return SolutionCreatorParameter; } 63 63 } 64 public ValueParameter<ISingleObjectiveTestFunction Evaluator> EvaluatorParameter {65 get { return (ValueParameter<ISingleObjectiveTestFunction Evaluator>)Parameters["Evaluator"]; }64 public ValueParameter<ISingleObjectiveTestFunctionProblemEvaluator> EvaluatorParameter { 65 get { return (ValueParameter<ISingleObjectiveTestFunctionProblemEvaluator>)Parameters["Evaluator"]; } 66 66 } 67 67 IParameter IProblem.EvaluatorParameter { 68 68 get { return EvaluatorParameter; } 69 69 } 70 public OptionalValueParameter<ISingleObjectiveTestFunction SolutionsVisualizer> VisualizerParameter {71 get { return (OptionalValueParameter<ISingleObjectiveTestFunction SolutionsVisualizer>)Parameters["Visualizer"]; }70 public OptionalValueParameter<ISingleObjectiveTestFunctionProblemSolutionsVisualizer> VisualizerParameter { 71 get { return (OptionalValueParameter<ISingleObjectiveTestFunctionProblemSolutionsVisualizer>)Parameters["Visualizer"]; } 72 72 } 73 73 IParameter IProblem.VisualizerParameter { … … 102 102 get { return SolutionCreatorParameter.Value; } 103 103 } 104 public ISingleObjectiveTestFunction Evaluator Evaluator {104 public ISingleObjectiveTestFunctionProblemEvaluator Evaluator { 105 105 get { return EvaluatorParameter.Value; } 106 106 set { EvaluatorParameter.Value = value; } … … 112 112 get { return EvaluatorParameter.Value; } 113 113 } 114 public ISingleObjectiveTestFunction SolutionsVisualizer Visualizer {114 public ISingleObjectiveTestFunctionProblemSolutionsVisualizer Visualizer { 115 115 get { return VisualizerParameter.Value; } 116 116 set { VisualizerParameter.Value = value; } … … 130 130 131 131 [StorableConstructor] 132 private SingleObjectiveTestFunction (bool deserializing) : base() { }133 public SingleObjectiveTestFunction ()132 private SingleObjectiveTestFunctionProblem(bool deserializing) : base() { } 133 public SingleObjectiveTestFunctionProblem() 134 134 : base() { 135 135 UniformRandomRealVectorCreator creator = new UniformRandomRealVectorCreator(); … … 140 140 Parameters.Add(new ValueParameter<IntValue>("ProblemSize", "The dimension of the problem.", new IntValue(2))); 141 141 Parameters.Add(new ValueParameter<IRealVectorCreator>("SolutionCreator", "The operator which should be used to create new TSP solutions.", creator)); 142 Parameters.Add(new ValueParameter<ISingleObjectiveTestFunction Evaluator>("Evaluator", "The operator which should be used to evaluate TSP solutions.", evaluator));143 Parameters.Add(new OptionalValueParameter<ISingleObjectiveTestFunction SolutionsVisualizer>("Visualizer", "The operator which should be used to visualize TSP solutions."));142 Parameters.Add(new ValueParameter<ISingleObjectiveTestFunctionProblemEvaluator>("Evaluator", "The operator which should be used to evaluate TSP solutions.", evaluator)); 143 Parameters.Add(new OptionalValueParameter<ISingleObjectiveTestFunctionProblemSolutionsVisualizer>("Visualizer", "The operator which should be used to visualize TSP solutions.")); 144 144 Parameters.Add(new OptionalValueParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this TSP instance.", new DoubleValue(evaluator.BestKnownQuality))); 145 145 … … 153 153 154 154 public override IDeepCloneable Clone(Cloner cloner) { 155 SingleObjectiveTestFunction clone = (SingleObjectiveTestFunction)base.Clone(cloner);155 SingleObjectiveTestFunctionProblem clone = (SingleObjectiveTestFunctionProblem)base.Clone(cloner); 156 156 clone.Initialize(); 157 157 return clone;
Note: See TracChangeset
for help on using the changeset viewer.