public void Run()
        {
            var pop = new Populatie(_marimePopulatie, _dimensiuni, _arieVecin);

            pop.Init();
            var nrIter = 0;

            System.Console.WriteLine("Cel mai bun: " + pop.GetBest().Fitness());
            System.Console.WriteLine("Iteratia nr : " + nrIter);
            System.Console.WriteLine("Cel mai bun: " + pop.GetBest().Fitness());
            while (Valid(pop) && nrIter < _numarIteratii)
            {
                pop.AddVecin();
                pop.Update();
                nrIter++;
                System.Console.WriteLine("Iteratia nr : " + nrIter);
                System.Console.WriteLine("Cel mai bun: " + pop.GetBest().Fitness());
            }
        }
 private bool Valid(Populatie p)
 {
     return(p.GetBest().Fitness() > _pragFitness);
 }