Changeset 3862 for trunk/sources/HeuristicLab.Problems.ExternalEvaluation
- Timestamp:
- 05/27/10 13:18:14 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3
- Files:
-
- 3 added
- 3 deleted
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3
- Property svn:ignore
-
old new 2 2 bin 3 3 obj 4 HeuristicLabProblemsExternalEvaluationPlugin.cs
-
- Property svn:ignore
-
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Analyzers/BestExternalEvaluationSolutionAnalyzer.cs
r3861 r3862 22 22 using System.Collections.Generic; 23 23 using System.Linq; 24 using HeuristicLab.Core; 25 using HeuristicLab.Data; 26 using HeuristicLab.Operators; 24 27 using HeuristicLab.Optimization; 25 using HeuristicLab.Data;26 using HeuristicLab.Core;27 using HeuristicLab.Operators;28 28 using HeuristicLab.Parameters; 29 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Drivers/ExternalEvaluationDriver.cs
r3859 r3862 21 21 22 22 using System; 23 using System.Collections.Generic;24 using System.Linq;25 using System.Text;26 using Google.ProtocolBuffers;27 23 using HeuristicLab.Core; 28 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Drivers/ExternalEvaluationProcessDriver.cs
r3859 r3862 21 21 22 22 using System; 23 using System.Collections.Generic;24 using System.Text;25 23 using System.Diagnostics; 26 24 using System.IO; 27 using Google.ProtocolBuffers;28 25 using HeuristicLab.Core; 29 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 40 37 private ExternalEvaluationStreamDriver driver; 41 38 39 public LocalProcessDriver() : this(String.Empty, String.Empty) { } 42 40 public LocalProcessDriver(string executable, string arguments) 43 41 : base() { -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Drivers/ExternalEvaluationStreamDriver.cs
r3859 r3862 21 21 22 22 using System; 23 using System.Collections.Generic;24 using System.Linq;25 using System.Text;26 23 using System.IO; 27 24 using Google.ProtocolBuffers; … … 38 35 private Stream output; 39 36 37 public ExternalEvaluationStreamDriver() : base() { } 40 38 public ExternalEvaluationStreamDriver(Stream input, Stream output) 41 39 : base() { -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/ExternalEvaluationProblem.cs
r3861 r3862 25 25 using System.Linq; 26 26 using HeuristicLab.Collections; 27 using HeuristicLab.Common; 27 28 using HeuristicLab.Core; 28 29 using HeuristicLab.Data; … … 33 34 namespace HeuristicLab.Problems.ExternalEvaluation { 34 35 [Item("External Evaluation Problem", "A problem that is evaluated in a different process.")] 36 [Creatable("Problems")] 35 37 [StorableClass] 36 public class ExternalEvaluationProblem : ParameterizedNamedItem, ISingleObjectiveProblem {38 public sealed class ExternalEvaluationProblem : ParameterizedNamedItem, ISingleObjectiveProblem { 37 39 public override Image ItemImage { 38 40 get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Type; } … … 124 126 Parameters.Add(new ValueParameter<IExternalEvaluationDriver>("Driver", "The communication driver that is used to exchange data with the external process.")); 125 127 Parameters.Add(new ValueParameter<IExternalEvaluationProblemEvaluator>("Evaluator", "The evaluator that collects the values to exchange.", evaluator)); 126 Parameters.Add(new ValueParameter<I Operator>("SolutionCreator", "An operator to create the solution components.", solutionCreator));128 Parameters.Add(new ValueParameter<ISolutionCreator>("SolutionCreator", "An operator to create the solution components.", solutionCreator)); 127 129 Parameters.Add(new ValueParameter<BoolValue>("Maximization", "Set to false as most test functions are minimization problems.", new BoolValue(false))); 128 130 Parameters.Add(new OptionalValueParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this problem.")); … … 132 134 InitializeOperators(); 133 135 AttachEventHandlers(); 136 } 137 138 public override IDeepCloneable Clone(Cloner cloner) { 139 ExternalEvaluationProblem clone = (ExternalEvaluationProblem)base.Clone(cloner); 140 clone.AttachEventHandlers(); 141 return clone; 134 142 } 135 143 … … 199 207 EvaluatorParameter.ValueChanged += new EventHandler(EvaluatorParameter_ValueChanged); 200 208 Evaluator.QualityParameter.ActualNameChanged += new EventHandler(Evaluator_QualityParameter_ActualNameChanged); 201 OperatorsParameter.ValueChanged += new System.EventHandler(OperatorsParameter_ValueChanged);209 OperatorsParameter.ValueChanged += new EventHandler(OperatorsParameter_ValueChanged); 202 210 OperatorsParameter.Value.ItemsAdded += new CollectionItemsChangedEventHandler<IndexedItem<IOperator>>(OperatorsParameter_Value_ItemsAdded); 203 211 OperatorsParameter.Value.ItemsRemoved += new CollectionItemsChangedEventHandler<IndexedItem<IOperator>>(OperatorsParameter_Value_ItemsRemoved); -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/ExternalEvaluationSolutionCreator.cs
r3861 r3862 20 20 #endregion 21 21 22 using System;23 using System.Collections.Generic;24 22 using System.Linq; 25 using System.Text;26 23 using HeuristicLab.Core; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;28 24 using HeuristicLab.Operators; 29 25 using HeuristicLab.Optimization; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 27 31 28 namespace HeuristicLab.Problems.ExternalEvaluation { -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/ExternalEvaluator.cs
r3859 r3862 21 21 22 22 using System; 23 using System.Collections.Generic;24 using System.Linq;25 23 using HeuristicLab.Core; 24 using HeuristicLab.Data; 26 25 using HeuristicLab.Operators; 27 26 using HeuristicLab.Parameters; 28 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HeuristicLab.Data;30 using System.Collections;31 using HeuristicLab.Optimization;32 28 33 29 namespace HeuristicLab.Problems.ExternalEvaluation { -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/HeuristicLab.Problems.ExternalEvaluation-3.3.csproj
r3861 r3862 13 13 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> 14 14 <FileAlignment>512</FileAlignment> 15 <SignAssembly>true</SignAssembly> 16 <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile> 15 17 </PropertyGroup> 16 18 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> … … 80 82 <ItemGroup> 81 83 <Compile Include="Analyzers\BestExternalEvaluationSolutionAnalyzer.cs" /> 84 <None Include="HeuristicLabProblemsExternalEvaluationPlugin.cs.frame" /> 82 85 <Compile Include="Drivers\ExternalEvaluationDriver.cs" /> 83 86 <Compile Include="Drivers\ExternalEvaluationProcessDriver.cs" /> … … 90 93 <Compile Include="Interfaces\IExternalEvaluationProblemEvaluator.cs" /> 91 94 <Compile Include="Properties\AssemblyInfo.cs" /> 95 <None Include="Properties\AssemblyInfo.frame" /> 92 96 <Compile Include="Protos\ExternalEvaluationMessages.cs" /> 93 97 <Compile Include="SolutionMessageBuilding.cs" /> … … 145 149 </ItemGroup> 146 150 <ItemGroup> 151 <None Include="HeuristicLab.snk" /> 147 152 <None Include="Protos\ExternalEvaluationMessages.proto" /> 148 153 </ItemGroup> … … 156 161 --> 157 162 <PropertyGroup> 158 <PreBuildEvent>set ProjectDir=$(ProjectDir) 163 <PreBuildEvent>set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 164 set ProjectDir=$(ProjectDir) 159 165 set SolutionDir=$(SolutionDir) 160 call "$(ProjectDir)"Protos\ProcessProtos.cmd</PreBuildEvent> 166 call "$(ProjectDir)Protos\ProcessProtos.cmd" 167 168 call PreBuildEvent.cmd 169 SubWCRev "%25ProjectDir%25\" "%25ProjectDir%25\HeuristicLabProblemsExternalEvaluationPlugin.cs.frame" "%25ProjectDir%25\HeuristicLabProblemsExternalEvaluationPlugin.cs"</PreBuildEvent> 161 170 </PropertyGroup> 162 171 </Project> -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Interfaces/IExternalEvaluationDriver.cs
r3859 r3862 22 22 using System; 23 23 using HeuristicLab.Core; 24 using Google.ProtocolBuffers;25 using Google.ProtocolBuffers.Descriptors;26 24 27 25 namespace HeuristicLab.Problems.ExternalEvaluation { -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Interfaces/IExternalEvaluationProblemEvaluator.cs
r3861 r3862 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 22 using HeuristicLab.Core; 26 23 using HeuristicLab.Optimization; 27 using HeuristicLab.Core;28 using HeuristicLab.Data;29 24 30 25 namespace HeuristicLab.Problems.ExternalEvaluation { -
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Properties
-
Property
svn:ignore
set to
AssemblyInfo.cs
-
Property
svn:ignore
set to
-
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/Protos
-
Property
svn:ignore
set to
ExternalEvaluationMessages.cs
-
Property
svn:ignore
set to
-
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/SolutionMessageBuilding.cs
r3859 r3862 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using HeuristicLab.Core; 22 26 using HeuristicLab.Data; 23 using System;24 using System.Linq;25 using System.Collections.Generic;26 using HeuristicLab.Core;27 using Google.ProtocolBuffers;28 27 29 28 namespace HeuristicLab.Problems.ExternalEvaluation {
Note: See TracChangeset
for help on using the changeset viewer.