-
-
Notifications
You must be signed in to change notification settings - Fork 344
Expand file tree
/
Copy pathITermination.cs
More file actions
20 lines (20 loc) · 708 Bytes
/
ITermination.cs
File metadata and controls
20 lines (20 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
namespace GeneticSharp
{
/// <summary>
/// Defines the interface for a termination condition.
/// </summary>
/// <remarks>
/// <see href="http://en.wikipedia.org/wiki/Genetic_algorithm#Termination">Wikipedia</see>
/// </remarks>
public interface ITermination
{
#region Methods
/// <summary>
/// Determines whether the specified geneticAlgorithm reached the termination condition.
/// </summary>
/// <returns>True if termination has been reached, otherwise false.</returns>
/// <param name="geneticAlgorithm">The genetic algorithm.</param>
bool HasReached(IGeneticAlgorithm geneticAlgorithm);
#endregion
}
}