Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/17/13 11:18:43 (11 years ago)
Author:
abeham
Message:

#1909:

  • Integrated TestFunctionInstances branch into trunk
  • Removed the branch
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  
    3535  [StorableClass]
    3636  public class AckleyEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
     37    public override string FunctionName { get { return "Ackley"; } }
    3738    /// <summary>
    3839    /// Returns false as the Ackley function is a minimization problem.
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/BealeEvaluator.cs

    r9456 r9980  
    3535  [StorableClass]
    3636  public class BealeEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
     37    public override string FunctionName { get { return "Beale"; } }
    3738    /// <summary>
    3839    /// Returns false as the Beale function is a minimization problem.
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/BoothEvaluator.cs

    r9456 r9980  
    3434  [StorableClass]
    3535  public class BoothEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
     36    public override string FunctionName { get { return "Booth"; } }
    3637    /// <summary>
    3738    /// Returns false as the Booth function is a minimization problem.
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/GriewankEvaluator.cs

    r9456 r9980  
    3636  [StorableClass]
    3737  public class GriewankEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
     38    public override string FunctionName { get { return "Griewank"; } }
    3839    /// <summary>
    3940    /// Returns false as the Griewank function is a minimization problem.
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/LevyEvaluator.cs

    r9456 r9980  
    3434  [StorableClass]
    3535  public class LevyEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
     36    public override string FunctionName { get { return "Levy"; } }
    3637    /// <summary>
    3738    /// Returns false as the Levy function is a minimization problem.
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/MatyasEvaluator.cs

    r9456 r9980  
    3434  [StorableClass]
    3535  public class MatyasEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
     36    public override string FunctionName { get { return "Matyas"; } }
    3637    /// <summary>
    3738    /// Returns false as the Matyas function is a minimization problem.
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/MultinormalEvaluator.cs

    r9456 r9980  
    3535  [StorableClass]
    3636  public class MultinormalEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
     37    public override string FunctionName { get { return "Multinormal"; } }
    3738
    3839    private ItemList<RealVector> centers {
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RandomEvaluator.cs

    r9456 r9980  
    3535  [StorableClass]
    3636  public class RandomEvaluator : SingleObjectiveTestFunctionProblemEvaluator, IStochasticOperator {
     37    public override string FunctionName { get { return "Random"; } }
    3738    /// <summary>
    3839    /// It does not really matter.
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RastriginEvaluator.cs

    r9456 r9980  
    3636  [StorableClass]
    3737  public class RastriginEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
     38    public override string FunctionName { get { return "Rastrigin"; } }
    3839    /// <summary>
    3940    /// Returns false as the Rastrigin function is a minimization problem.
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/RosenbrockEvaluator.cs

    r9456 r9980  
    3838  [StorableClass]
    3939  public class RosenbrockEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
     40    public override string FunctionName { get { return "Rosenbrock"; } }
    4041    /// <summary>
    4142    /// Returns false as the Rosenbrock function is a minimization problem.
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SchwefelEvaluator.cs

    r9456 r9980  
    3434  [StorableClass]
    3535  public class SchwefelEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
     36    public override string FunctionName { get { return "Schwefel"; } }
    3637    /// <summary>
    3738    /// Returns false as the Schwefel (sine root) function is a minimization problem.
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SingleObjectiveTestFunctionProblemEvaluator.cs

    r9456 r9980  
    3535  [StorableClass]
    3636  public abstract class SingleObjectiveTestFunctionProblemEvaluator : SingleSuccessorOperator, ISingleObjectiveTestFunctionProblemEvaluator {
     37    /// <summary>
     38    /// The name of the function
     39    /// </summary>
     40    public abstract string FunctionName { get; }
    3741    /// <summary>
    3842    /// These operators should not change their name through the GUI
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SphereEvaluator.cs

    r9456 r9980  
    3636  [StorableClass]
    3737  public class SphereEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
     38    public override string FunctionName { get { return "Sphere"; } }
    3839    /// <summary>
    3940    /// Returns false as the Sphere function is a minimization problem.
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/SumSquaresEvaluator.cs

    r9456 r9980  
    3333  [StorableClass]
    3434  public class SumSquaresEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
     35    public override string FunctionName { get { return "SumSquares"; } }
    3536    /// <summary>
    3637    /// Returns false as the Sum Squares function is a minimization problem.
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Evaluators/ZakharovEvaluator.cs

    r9456 r9980  
    3333  [StorableClass]
    3434  public class ZakharovEvaluator : SingleObjectiveTestFunctionProblemEvaluator {
     35    public override string FunctionName { get { return "Zakharov"; } }
    3536    /// <summary>
    3637    /// 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  
    4141    <DebugType>full</DebugType>
    4242    <Optimize>false</Optimize>
    43     <OutputPath>$(SolutionDir)\bin\</OutputPath>
     43    <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath>
    4444    <DefineConstants>DEBUG;TRACE</DefineConstants>
    4545    <ErrorReport>prompt</ErrorReport>
     
    5050    <DebugType>pdbonly</DebugType>
    5151    <Optimize>true</Optimize>
    52     <OutputPath>$(SolutionDir)\bin\</OutputPath>
     52    <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath>
    5353    <DefineConstants>TRACE</DefineConstants>
    5454    <ErrorReport>prompt</ErrorReport>
     
    5858  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
    5959    <DebugSymbols>true</DebugSymbols>
    60     <OutputPath>$(SolutionDir)\bin\</OutputPath>
     60    <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath>
    6161    <DefineConstants>DEBUG;TRACE</DefineConstants>
    6262    <DebugType>full</DebugType>
     
    6666  </PropertyGroup>
    6767  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
    68     <OutputPath>$(SolutionDir)\bin\</OutputPath>
     68    <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath>
    6969    <DefineConstants>TRACE</DefineConstants>
    7070    <Optimize>true</Optimize>
     
    7676  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
    7777    <DebugSymbols>true</DebugSymbols>
    78     <OutputPath>$(SolutionDir)\bin\</OutputPath>
     78    <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath>
    7979    <DefineConstants>DEBUG;TRACE</DefineConstants>
    8080    <DebugType>full</DebugType>
     
    8484  </PropertyGroup>
    8585  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
    86     <OutputPath>$(SolutionDir)\bin\</OutputPath>
     86    <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath>
    8787    <DefineConstants>TRACE</DefineConstants>
    8888    <Optimize>true</Optimize>
     
    9393  </PropertyGroup>
    9494  <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>
    95160    <Reference Include="System" />
    96161    <Reference Include="System.Core">
     
    164229  </ItemGroup>
    165230  <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>
    231231    <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
    232232      <Visible>False</Visible>
     
    245245    </BootstrapperPackage>
    246246  </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>
    248254  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    249255  <!-- 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  
    3535    int MinimumProblemSize { get; }
    3636    int MaximumProblemSize { get; }
     37    string FunctionName { get; }
    3738
    3839    ILookupParameter<RealVector> PointParameter { get; }
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/Plugin.cs.frame

    r9462 r9980  
    3838  [PluginDependency("HeuristicLab.Optimization", "3.3")]
    3939  [PluginDependency("HeuristicLab.Optimization.Operators", "3.3")]
     40  [PluginDependency("HeuristicLab.Problems.Instances", "3.3")]
    4041  [PluginDependency("HeuristicLab.Parameters", "3.3")]
    4142  [PluginDependency("HeuristicLab.Persistence", "3.3")]
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs

    r9456 r9980  
    2020#endregion
    2121
     22using System;
     23using System.Collections.Generic;
     24using System.Linq;
    2225using HeuristicLab.Analysis;
    2326using HeuristicLab.Common;
     
    2932using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3033using HeuristicLab.PluginInfrastructure;
    31 using System;
    32 using System.Collections.Generic;
    33 using System.Linq;
     34using HeuristicLab.Problems.Instances;
    3435
    3536namespace HeuristicLab.Problems.TestFunctions {
     
    3738  [StorableClass]
    3839  [Creatable("Problems")]
    39   public sealed class SingleObjectiveTestFunctionProblem : SingleObjectiveHeuristicOptimizationProblem<ISingleObjectiveTestFunctionProblemEvaluator, IRealVectorCreator>, IStorableContent {
     40  public sealed class SingleObjectiveTestFunctionProblem : SingleObjectiveHeuristicOptimizationProblem<ISingleObjectiveTestFunctionProblemEvaluator, IRealVectorCreator>, IStorableContent, IProblemInstanceConsumer<SOTFData> {
    4041    public string Filename { get; set; }
    4142
     
    324325      try {
    325326        BestKnownSolutionParameter.Value = Evaluator.GetBestKnownSolution(ProblemSize.Value);
    326       }
    327       catch (ArgumentException e) {
     327      } catch (ArgumentException e) {
    328328        ErrorHandling.ShowErrorDialog(e);
    329329        ProblemSize.Value = Evaluator.MinimumProblemSize;
     
    406406    }
    407407    #endregion
     408
     409    public void Load(SOTFData data) {
     410      Name = data.Name;
     411      Description = data.Description;
     412      Evaluator = (ISingleObjectiveTestFunctionProblemEvaluator)data.Evaluator;
     413    }
    408414  }
    409415}
Note: See TracChangeset for help on using the changeset viewer.