Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3862


Ignore:
Timestamp:
05/27/10 13:18:14 (15 years ago)
Author:
abeham
Message:

#866

  • updated external evaluation problem
  • included in build config
Location:
trunk/sources
Files:
6 added
4 deleted
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab 3.3.sln

    r3857 r3862  
    8282    {DBECB8B0-B166-4133-BAF1-ED67C3FD7FCA} = {DBECB8B0-B166-4133-BAF1-ED67C3FD7FCA}
    8383    {887425B4-4348-49ED-A457-B7D2C26DDBF9} = {887425B4-4348-49ED-A457-B7D2C26DDBF9}
     84    {25735DB4-8E54-4A2C-83E3-A60C76565E55} = {25735DB4-8E54-4A2C-83E3-A60C76565E55}
    8485    {A16F23B5-FB62-499E-A831-26953AA56FE2} = {A16F23B5-FB62-499E-A831-26953AA56FE2}
    8586    {F4539FB6-4708-40C9-BE64-0A1390AEA197} = {F4539FB6-4708-40C9-BE64-0A1390AEA197}
     
    18011802    {89B50302-9CEE-4D13-9779-633EADCAE624}.Silverlight2|x86.Build.0 = Release|x86
    18021803    {25735DB4-8E54-4A2C-83E3-A60C76565E55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
     1804    {25735DB4-8E54-4A2C-83E3-A60C76565E55}.Debug|Any CPU.Build.0 = Debug|Any CPU
    18031805    {25735DB4-8E54-4A2C-83E3-A60C76565E55}.Debug|x64.ActiveCfg = Debug|x64
     1806    {25735DB4-8E54-4A2C-83E3-A60C76565E55}.Debug|x64.Build.0 = Debug|x64
    18041807    {25735DB4-8E54-4A2C-83E3-A60C76565E55}.Debug|x86.ActiveCfg = Debug|x86
     1808    {25735DB4-8E54-4A2C-83E3-A60C76565E55}.Debug|x86.Build.0 = Debug|x86
    18051809    {25735DB4-8E54-4A2C-83E3-A60C76565E55}.Release|Any CPU.ActiveCfg = Release|Any CPU
     1810    {25735DB4-8E54-4A2C-83E3-A60C76565E55}.Release|Any CPU.Build.0 = Release|Any CPU
    18061811    {25735DB4-8E54-4A2C-83E3-A60C76565E55}.Release|x64.ActiveCfg = Release|x64
     1812    {25735DB4-8E54-4A2C-83E3-A60C76565E55}.Release|x64.Build.0 = Release|x64
    18071813    {25735DB4-8E54-4A2C-83E3-A60C76565E55}.Release|x86.ActiveCfg = Release|x86
     1814    {25735DB4-8E54-4A2C-83E3-A60C76565E55}.Release|x86.Build.0 = Release|x86
    18081815    {25735DB4-8E54-4A2C-83E3-A60C76565E55}.Services|Any CPU.ActiveCfg = Release|Any CPU
    18091816    {25735DB4-8E54-4A2C-83E3-A60C76565E55}.Services|Any CPU.Build.0 = Release|Any CPU
     
    19421949    {236459CE-80CF-4991-972F-DE74C826BCCC}.Release|x64.ActiveCfg = Release|x64
    19431950    {236459CE-80CF-4991-972F-DE74C826BCCC}.Release|x64.Build.0 = Release|x64
    1944     {236459CE-80CF-4991-972F-DE74C826BCCC}.Release|x86.ActiveCfg = Release|Any CPU
     1951    {236459CE-80CF-4991-972F-DE74C826BCCC}.Release|x86.ActiveCfg = Release|x86
     1952    {236459CE-80CF-4991-972F-DE74C826BCCC}.Release|x86.Build.0 = Release|x86
    19451953    {236459CE-80CF-4991-972F-DE74C826BCCC}.Services|Any CPU.ActiveCfg = Release|Any CPU
    19461954    {236459CE-80CF-4991-972F-DE74C826BCCC}.Services|Any CPU.Build.0 = Release|Any CPU
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3

    • Property svn:ignore
      •  

        old new  
        22bin
        33obj
         4HeuristicLabProblemsExternalEvaluationPlugin.cs
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Analyzers/BestExternalEvaluationSolutionAnalyzer.cs

    r3861 r3862  
    2222using System.Collections.Generic;
    2323using System.Linq;
     24using HeuristicLab.Core;
     25using HeuristicLab.Data;
     26using HeuristicLab.Operators;
    2427using HeuristicLab.Optimization;
    25 using HeuristicLab.Data;
    26 using HeuristicLab.Core;
    27 using HeuristicLab.Operators;
    2828using HeuristicLab.Parameters;
    2929using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Drivers/ExternalEvaluationDriver.cs

    r3859 r3862  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
    26 using Google.ProtocolBuffers;
    2723using HeuristicLab.Core;
    2824using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Drivers/ExternalEvaluationProcessDriver.cs

    r3859 r3862  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Text;
    2523using System.Diagnostics;
    2624using System.IO;
    27 using Google.ProtocolBuffers;
    2825using HeuristicLab.Core;
    2926using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    4037    private ExternalEvaluationStreamDriver driver;
    4138
     39    public LocalProcessDriver() : this(String.Empty, String.Empty) { }
    4240    public LocalProcessDriver(string executable, string arguments)
    4341      : base() {
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Drivers/ExternalEvaluationStreamDriver.cs

    r3859 r3862  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
    2623using System.IO;
    2724using Google.ProtocolBuffers;
     
    3835    private Stream output;
    3936
     37    public ExternalEvaluationStreamDriver() : base() { }
    4038    public ExternalEvaluationStreamDriver(Stream input, Stream output)
    4139      : base() {
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/ExternalEvaluationProblem.cs

    r3861 r3862  
    2525using System.Linq;
    2626using HeuristicLab.Collections;
     27using HeuristicLab.Common;
    2728using HeuristicLab.Core;
    2829using HeuristicLab.Data;
     
    3334namespace HeuristicLab.Problems.ExternalEvaluation {
    3435  [Item("External Evaluation Problem", "A problem that is evaluated in a different process.")]
     36  [Creatable("Problems")]
    3537  [StorableClass]
    36   public class ExternalEvaluationProblem : ParameterizedNamedItem, ISingleObjectiveProblem {
     38  public sealed class ExternalEvaluationProblem : ParameterizedNamedItem, ISingleObjectiveProblem {
    3739    public override Image ItemImage {
    3840      get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Type; }
     
    124126      Parameters.Add(new ValueParameter<IExternalEvaluationDriver>("Driver", "The communication driver that is used to exchange data with the external process."));
    125127      Parameters.Add(new ValueParameter<IExternalEvaluationProblemEvaluator>("Evaluator", "The evaluator that collects the values to exchange.", evaluator));
    126       Parameters.Add(new ValueParameter<IOperator>("SolutionCreator", "An operator to create the solution components.", solutionCreator));
     128      Parameters.Add(new ValueParameter<ISolutionCreator>("SolutionCreator", "An operator to create the solution components.", solutionCreator));
    127129      Parameters.Add(new ValueParameter<BoolValue>("Maximization", "Set to false as most test functions are minimization problems.", new BoolValue(false)));
    128130      Parameters.Add(new OptionalValueParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this problem."));
     
    132134      InitializeOperators();
    133135      AttachEventHandlers();
     136    }
     137
     138    public override IDeepCloneable Clone(Cloner cloner) {
     139      ExternalEvaluationProblem clone = (ExternalEvaluationProblem)base.Clone(cloner);
     140      clone.AttachEventHandlers();
     141      return clone;
    134142    }
    135143
     
    199207      EvaluatorParameter.ValueChanged += new EventHandler(EvaluatorParameter_ValueChanged);
    200208      Evaluator.QualityParameter.ActualNameChanged += new EventHandler(Evaluator_QualityParameter_ActualNameChanged);
    201       OperatorsParameter.ValueChanged += new System.EventHandler(OperatorsParameter_ValueChanged);
     209      OperatorsParameter.ValueChanged += new EventHandler(OperatorsParameter_ValueChanged);
    202210      OperatorsParameter.Value.ItemsAdded += new CollectionItemsChangedEventHandler<IndexedItem<IOperator>>(OperatorsParameter_Value_ItemsAdded);
    203211      OperatorsParameter.Value.ItemsRemoved += new CollectionItemsChangedEventHandler<IndexedItem<IOperator>>(OperatorsParameter_Value_ItemsRemoved);
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/ExternalEvaluationSolutionCreator.cs

    r3861 r3862  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    2422using System.Linq;
    25 using System.Text;
    2623using HeuristicLab.Core;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2824using HeuristicLab.Operators;
    2925using HeuristicLab.Optimization;
     26using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3027
    3128namespace HeuristicLab.Problems.ExternalEvaluation {
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/ExternalEvaluator.cs

    r3859 r3862  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    2523using HeuristicLab.Core;
     24using HeuristicLab.Data;
    2625using HeuristicLab.Operators;
    2726using HeuristicLab.Parameters;
    2827using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    29 using HeuristicLab.Data;
    30 using System.Collections;
    31 using HeuristicLab.Optimization;
    3228
    3329namespace HeuristicLab.Problems.ExternalEvaluation {
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/HeuristicLab.Problems.ExternalEvaluation-3.3.csproj

    r3861 r3862  
    1313    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
    1414    <FileAlignment>512</FileAlignment>
     15    <SignAssembly>true</SignAssembly>
     16    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
    1517  </PropertyGroup>
    1618  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     
    8082  <ItemGroup>
    8183    <Compile Include="Analyzers\BestExternalEvaluationSolutionAnalyzer.cs" />
     84    <None Include="HeuristicLabProblemsExternalEvaluationPlugin.cs.frame" />
    8285    <Compile Include="Drivers\ExternalEvaluationDriver.cs" />
    8386    <Compile Include="Drivers\ExternalEvaluationProcessDriver.cs" />
     
    9093    <Compile Include="Interfaces\IExternalEvaluationProblemEvaluator.cs" />
    9194    <Compile Include="Properties\AssemblyInfo.cs" />
     95    <None Include="Properties\AssemblyInfo.frame" />
    9296    <Compile Include="Protos\ExternalEvaluationMessages.cs" />
    9397    <Compile Include="SolutionMessageBuilding.cs" />
     
    145149  </ItemGroup>
    146150  <ItemGroup>
     151    <None Include="HeuristicLab.snk" />
    147152    <None Include="Protos\ExternalEvaluationMessages.proto" />
    148153  </ItemGroup>
     
    156161  -->
    157162  <PropertyGroup>
    158     <PreBuildEvent>set ProjectDir=$(ProjectDir)
     163    <PreBuildEvent>set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
     164set ProjectDir=$(ProjectDir)
    159165set SolutionDir=$(SolutionDir)
    160 call "$(ProjectDir)"Protos\ProcessProtos.cmd</PreBuildEvent>
     166call "$(ProjectDir)Protos\ProcessProtos.cmd"
     167
     168call PreBuildEvent.cmd
     169SubWCRev "%25ProjectDir%25\" "%25ProjectDir%25\HeuristicLabProblemsExternalEvaluationPlugin.cs.frame" "%25ProjectDir%25\HeuristicLabProblemsExternalEvaluationPlugin.cs"</PreBuildEvent>
    161170  </PropertyGroup>
    162171</Project>
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Interfaces/IExternalEvaluationDriver.cs

    r3859 r3862  
    2222using System;
    2323using HeuristicLab.Core;
    24 using Google.ProtocolBuffers;
    25 using Google.ProtocolBuffers.Descriptors;
    2624
    2725namespace HeuristicLab.Problems.ExternalEvaluation {
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Interfaces/IExternalEvaluationProblemEvaluator.cs

    r3861 r3862  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
     22using HeuristicLab.Core;
    2623using HeuristicLab.Optimization;
    27 using HeuristicLab.Core;
    28 using HeuristicLab.Data;
    2924
    3025namespace HeuristicLab.Problems.ExternalEvaluation {
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Properties

    • Property svn:ignore set to
      AssemblyInfo.cs
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Protos

    • Property svn:ignore set to
      ExternalEvaluationMessages.cs
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/SolutionMessageBuilding.cs

    r3859 r3862  
    2020#endregion
    2121
     22using System;
     23using System.Collections.Generic;
     24using System.Linq;
     25using HeuristicLab.Core;
    2226using HeuristicLab.Data;
    23 using System;
    24 using System.Linq;
    25 using System.Collections.Generic;
    26 using HeuristicLab.Core;
    27 using Google.ProtocolBuffers;
    2827
    2928namespace HeuristicLab.Problems.ExternalEvaluation {
  • trunk/sources/HeuristicLab/3.3/Files.txt

    r3851 r3862  
    4747HeuristicLab.Problems.DataAnalysis.Regression\3.3:HeuristicLab.Problems.DataAnalysis.Regression-3.3.dll
    4848HeuristicLab.Problems.DataAnalysis.Views\3.3:HeuristicLab.Problems.DataAnalysis.Views-3.3.dll
     49HeuristicLab.Problems.ExternalEvaluation\3.3:HeuristicLab.Problems.ExternalEvaluation-3.3.dll
    4950HeuristicLab.Problems.Knapsack\3.3:HeuristicLab.Problems.Knapsack-3.3.dll
    5051HeuristicLab.Problems.Knapsack.Views\3.3:HeuristicLab.Problems.Knapsack.Views-3.3.dll
     
    7778HeuristicLab.ExtLibs\HeuristicLab.Netron\3.0.2672.12446\HeuristicLab.Netron-3.0.2672.12446:Netron.Diagramming.Core License.txt
    7879
     80HeuristicLab.ExtLibs\HeuristicLab.ProtobufCS\0.9.1\HeuristicLab.ProtobufCS:HeuristicLab.ProtobufCS-0.9.1.dll
     81HeuristicLab.ExtLibs\HeuristicLab.ProtobufCS\0.9.1\HeuristicLab.ProtobufCS:Google.ProtocolBuffers-0.9.1.dll
     82HeuristicLab.ExtLibs\HeuristicLab.ProtobufCS\0.9.1\HeuristicLab.ProtobufCS:Google.ProtocolBuffers-license-0.9.1.txt
     83
    7984HeuristicLab.ExtLibs\HeuristicLab.SharpDevelop\3.1.1.5327:HeuristicLab.SharpDevelop-3.1.1.5327.dll
    8085HeuristicLab.ExtLibs\HeuristicLab.SharpDevelop\3.1.1.5327:ICSharpCode.NRefactory.dll
Note: See TracChangeset for help on using the changeset viewer.