- Timestamp:
- 08/12/13 15:48:14 (11 years ago)
- Location:
- branches/TestFunctionInstances/HeuristicLab.Problems.TestFunctions/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/TestFunctionInstances/HeuristicLab.Problems.TestFunctions/3.3/HeuristicLab.Problems.TestFunctions-3.3.csproj
r9877 r9878 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. -
branches/TestFunctionInstances/HeuristicLab.Problems.TestFunctions/3.3/Plugin.cs.frame
r9462 r9878 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")] -
branches/TestFunctionInstances/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r9456 r9878 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.