Changeset 1167 for trunk/sources/HeuristicLab.Logging/BestSolutionStorer.cs
- Timestamp:
- 01/22/09 12:06:29 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Logging/BestSolutionStorer.cs
r368 r1167 28 28 29 29 namespace HeuristicLab.Logging { 30 /// <summary> 31 /// Keeps a variable in the global scope that contains the scope representing the best solution. 32 /// </summary> 30 33 public class BestSolutionStorer : DelegatingOperator { 34 /// <inheritdoc select="summary"/> 31 35 public override string Description { 32 36 get { return @"Keeps a variable in the global scope that contains the scope representing the best of run solution."; } 33 37 } 34 38 39 /// <summary> 40 /// Initializes a new instance of <see cref="BestSolutionStorer"/> with three variable infos 41 /// (<c>Quality</c>, <c>Maximization</c> and <c>BestSolution</c>). 42 /// </summary> 35 43 public BestSolutionStorer() 36 44 : base() { … … 40 48 } 41 49 50 /// <summary> 51 /// Keeps a variable in the global scope that contains the scope representing the best solution. 52 /// </summary> 53 /// <param name="scope">The scope whose populations to check for the best solution.</param> 54 /// <returns><c>null</c>.</returns> 42 55 public override IOperation Apply(IScope scope) { 43 56 if(scope.GetVariable(Guid.ToString() + "-Active") == null) {
Note: See TracChangeset
for help on using the changeset viewer.