Changeset 9980 for trunk/sources/HeuristicLab.Problems.TestFunctions
- Timestamp:
- 09/17/13 11:18:43 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.TestFunctions/3.3
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/AckleyEvaluator.cs
r9456 r9980 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. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/BealeEvaluator.cs
r9456 r9980 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. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/BoothEvaluator.cs
r9456 r9980 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. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/GriewankEvaluator.cs
r9456 r9980 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. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/LevyEvaluator.cs
r9456 r9980 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. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/MatyasEvaluator.cs
r9456 r9980 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. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/MultinormalEvaluator.cs
r9456 r9980 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 { -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RandomEvaluator.cs
r9456 r9980 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. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RastriginEvaluator.cs
r9456 r9980 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. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RosenbrockEvaluator.cs
r9456 r9980 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. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SchwefelEvaluator.cs
r9456 r9980 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. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SingleObjectiveTestFunctionProblemEvaluator.cs
r9456 r9980 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 -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SphereEvaluator.cs
r9456 r9980 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. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SumSquaresEvaluator.cs
r9456 r9980 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. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/ZakharovEvaluator.cs
r9456 r9980 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. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/HeuristicLab.Problems.TestFunctions-3.3.csproj
r9300 r9980 41 41 <DebugType>full</DebugType> 42 42 <Optimize>false</Optimize> 43 <OutputPath> $(SolutionDir)\bin\</OutputPath>43 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 44 44 <DefineConstants>DEBUG;TRACE</DefineConstants> 45 45 <ErrorReport>prompt</ErrorReport> … … 50 50 <DebugType>pdbonly</DebugType> 51 51 <Optimize>true</Optimize> 52 <OutputPath> $(SolutionDir)\bin\</OutputPath>52 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 53 53 <DefineConstants>TRACE</DefineConstants> 54 54 <ErrorReport>prompt</ErrorReport> … … 58 58 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> 59 59 <DebugSymbols>true</DebugSymbols> 60 <OutputPath> $(SolutionDir)\bin\</OutputPath>60 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 61 61 <DefineConstants>DEBUG;TRACE</DefineConstants> 62 62 <DebugType>full</DebugType> … … 66 66 </PropertyGroup> 67 67 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> 68 <OutputPath> $(SolutionDir)\bin\</OutputPath>68 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 69 69 <DefineConstants>TRACE</DefineConstants> 70 70 <Optimize>true</Optimize> … … 76 76 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> 77 77 <DebugSymbols>true</DebugSymbols> 78 <OutputPath> $(SolutionDir)\bin\</OutputPath>78 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 79 79 <DefineConstants>DEBUG;TRACE</DefineConstants> 80 80 <DebugType>full</DebugType> … … 84 84 </PropertyGroup> 85 85 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> 86 <OutputPath> $(SolutionDir)\bin\</OutputPath>86 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath> 87 87 <DefineConstants>TRACE</DefineConstants> 88 88 <Optimize>true</Optimize> … … 93 93 </PropertyGroup> 94 94 <ItemGroup> 95 <Reference Include="HeuristicLab.Analysis-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 96 <SpecificVersion>False</SpecificVersion> 97 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Analysis-3.3.dll</HintPath> 98 <Private>False</Private> 99 </Reference> 100 <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 101 <SpecificVersion>False</SpecificVersion> 102 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Collections-3.3.dll</HintPath> 103 <Private>False</Private> 104 </Reference> 105 <Reference Include="HeuristicLab.Common-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 106 <SpecificVersion>False</SpecificVersion> 107 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common-3.3.dll</HintPath> 108 <Private>False</Private> 109 </Reference> 110 <Reference Include="HeuristicLab.Common.Resources-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 111 <SpecificVersion>False</SpecificVersion> 112 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common.Resources-3.3.dll</HintPath> 113 <Private>False</Private> 114 </Reference> 115 <Reference Include="HeuristicLab.Core-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 116 <SpecificVersion>False</SpecificVersion> 117 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Core-3.3.dll</HintPath> 118 <Private>False</Private> 119 </Reference> 120 <Reference Include="HeuristicLab.Data-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 121 <SpecificVersion>False</SpecificVersion> 122 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Data-3.3.dll</HintPath> 123 <Private>False</Private> 124 </Reference> 125 <Reference Include="HeuristicLab.Encodings.RealVectorEncoding-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 126 <SpecificVersion>False</SpecificVersion> 127 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Encodings.RealVectorEncoding-3.3.dll</HintPath> 128 <Private>False</Private> 129 </Reference> 130 <Reference Include="HeuristicLab.Operators-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 131 <SpecificVersion>False</SpecificVersion> 132 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Operators-3.3.dll</HintPath> 133 <Private>False</Private> 134 </Reference> 135 <Reference Include="HeuristicLab.Optimization-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 136 <SpecificVersion>False</SpecificVersion> 137 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Optimization-3.3.dll</HintPath> 138 <Private>False</Private> 139 </Reference> 140 <Reference Include="HeuristicLab.Optimization.Operators-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 141 <SpecificVersion>False</SpecificVersion> 142 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Optimization.Operators-3.3.dll</HintPath> 143 <Private>False</Private> 144 </Reference> 145 <Reference Include="HeuristicLab.Parameters-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 146 <SpecificVersion>False</SpecificVersion> 147 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Parameters-3.3.dll</HintPath> 148 <Private>False</Private> 149 </Reference> 150 <Reference Include="HeuristicLab.Persistence-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 151 <SpecificVersion>False</SpecificVersion> 152 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Persistence-3.3.dll</HintPath> 153 <Private>False</Private> 154 </Reference> 155 <Reference Include="HeuristicLab.PluginInfrastructure-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 156 <SpecificVersion>False</SpecificVersion> 157 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 158 <Private>False</Private> 159 </Reference> 95 160 <Reference Include="System" /> 96 161 <Reference Include="System.Core"> … … 164 229 </ItemGroup> 165 230 <ItemGroup> 166 <ProjectReference Include="..\..\HeuristicLab.Analysis\3.3\HeuristicLab.Analysis-3.3.csproj">167 <Project>{887425B4-4348-49ED-A457-B7D2C26DDBF9}</Project>168 <Name>HeuristicLab.Analysis-3.3</Name>169 </ProjectReference>170 <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj">171 <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project>172 <Name>HeuristicLab.Collections-3.3</Name>173 <Private>False</Private>174 </ProjectReference>175 <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj">176 <Project>{0E27A536-1C4A-4624-A65E-DC4F4F23E3E1}</Project>177 <Name>HeuristicLab.Common.Resources-3.3</Name>178 <Private>False</Private>179 </ProjectReference>180 <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">181 <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project>182 <Name>HeuristicLab.Common-3.3</Name>183 <Private>False</Private>184 </ProjectReference>185 <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">186 <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project>187 <Name>HeuristicLab.Core-3.3</Name>188 <Private>False</Private>189 </ProjectReference>190 <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj">191 <Project>{BBAB9DF5-5EF3-4BA8-ADE9-B36E82114937}</Project>192 <Name>HeuristicLab.Data-3.3</Name>193 <Private>False</Private>194 </ProjectReference>195 <ProjectReference Include="..\..\HeuristicLab.Encodings.RealVectorEncoding\3.3\HeuristicLab.Encodings.RealVectorEncoding-3.3.csproj">196 <Project>{BB6D334A-4BB6-4674-9883-31A6EBB32CAB}</Project>197 <Name>HeuristicLab.Encodings.RealVectorEncoding-3.3</Name>198 <Private>False</Private>199 </ProjectReference>200 <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj">201 <Project>{23DA7FF4-D5B8-41B6-AA96-F0561D24F3EE}</Project>202 <Name>HeuristicLab.Operators-3.3</Name>203 <Private>False</Private>204 </ProjectReference>205 <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators\3.3\HeuristicLab.Optimization.Operators-3.3.csproj">206 <Project>{25087811-F74C-4128-BC86-8324271DA13E}</Project>207 <Name>HeuristicLab.Optimization.Operators-3.3</Name>208 </ProjectReference>209 <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj">210 <Project>{14AB8D24-25BC-400C-A846-4627AA945192}</Project>211 <Name>HeuristicLab.Optimization-3.3</Name>212 <Private>False</Private>213 </ProjectReference>214 <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj">215 <Project>{56F9106A-079F-4C61-92F6-86A84C2D84B7}</Project>216 <Name>HeuristicLab.Parameters-3.3</Name>217 <Private>False</Private>218 </ProjectReference>219 <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">220 <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project>221 <Name>HeuristicLab.Persistence-3.3</Name>222 <Private>False</Private>223 </ProjectReference>224 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">225 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>226 <Name>HeuristicLab.PluginInfrastructure-3.3</Name>227 <Private>False</Private>228 </ProjectReference>229 </ItemGroup>230 <ItemGroup>231 231 <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> 232 232 <Visible>False</Visible> … … 245 245 </BootstrapperPackage> 246 246 </ItemGroup> 247 <ItemGroup /> 247 <ItemGroup> 248 <ProjectReference Include="..\..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj"> 249 <Project>{3540e29e-4793-49e7-8ee2-fea7f61c3994}</Project> 250 <Name>HeuristicLab.Problems.Instances-3.3</Name> 251 <Private>False</Private> 252 </ProjectReference> 253 </ItemGroup> 248 254 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 249 255 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Interfaces/ISingleObjectiveTestFunctionProblemEvaluator.cs
r9456 r9980 35 35 int MinimumProblemSize { get; } 36 36 int MaximumProblemSize { get; } 37 string FunctionName { get; } 37 38 38 39 ILookupParameter<RealVector> PointParameter { get; } -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Plugin.cs.frame
r9462 r9980 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")] -
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r9456 r9980 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 = (ISingleObjectiveTestFunctionProblemEvaluator)data.Evaluator; 413 } 408 414 } 409 415 }
Note: See TracChangeset
for help on using the changeset viewer.