Esempio n. 1
0
        /// <summary>
        /// Constructs a new instance.
        /// </summary>
        /// <param name="ea">The <see cref="IEvolutionAlgorithm"/> to wrap.</param>
        public EvolutionAlgorithmRunner(IEvolutionAlgorithm ea)
        {
            _ea = ea ?? throw new ArgumentNullException(nameof(ea));

            // Set to ready state.
            _runState = RunState.Ready;

            // Set a default update scheme of once per second.
            _updateScheme = UpdateScheme.CreateTimeSpanUpdateScheme(TimeSpan.FromSeconds(1));
        }