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); }
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); }