Example #1
0
 public HillEvo(int tp, AlgSelection sel, CruceYMutacion crux, MahFunc func)
 {
     m_sel = sel;
     m_crux = crux;
     m_func = func;
     m_tp = tp;
     m_pop = new Poblacion(tp);
 }
Example #2
0
        static void Main(String[] args)
        {
            MahFunc m_fn = new profFunc ();
            AlgGenetico auto;
            AlgSelection m_sel = new Torneo ();
            CruceYMutacion x = new CruceYMutacion(0.8, 0.8, new gaussMut(2));

            auto = new HillEvo (100, m_sel, x, m_fn);

            auto.AlgGen (1000);
        }