/// <summary> /// Determines whether the specified genetic algorithm fulfilled the termination condition. /// </summary> /// <param name="geneticAlgorithm">The genetic algorithm.</param> /// <returns>True if termination has been fulfilled, otherwise false.</returns> public bool IsFulfilled(IGeneticlgorithm geneticAlgorithm) { if (geneticAlgorithm.TimeEvolving < maxTime) { return(false); } return(true); }
/// <summary> /// Determines whether the specified genetic algorithm fulfilled the termination condition. /// </summary> /// <param name="geneticAlgorithm">The genetic algorithm.</param> /// <returns>True if termination has been fulfilled, otherwise false.</returns> public bool IsFulfilled(IGeneticlgorithm geneticAlgorithm) { if (geneticAlgorithm.CurrentGenerationsNumber < expectedMaxGeneration) { return(false); } return(true); }