Changeset 9990 for stable/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
- Timestamp:
- 09/19/13 10:32:22 (11 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 9980-9982
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.TestFunctions
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.TestFunctions (added) merged: 9980-9982
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r9456 r9990 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 = data.Evaluator; 413 } 408 414 } 409 415 }
Note: See TracChangeset
for help on using the changeset viewer.