@Override
    public boolean equals(Object ob)
    {
        if(ob instanceof Poblacion) {
            Poblacion p = (Poblacion)ob;
            //if(this.individuos.length != p.individuos.length) {
            if(this.indi.size()!=p.indi.size()) {
                return false;
            }
            //int n = this.individuos.length;
            int n = this.indi.size();
            for(int i=0; i<n; i++) {
                //if(!this.individuos[i].equals(p.individuos[i])) {
                if(!this.indi.get(i).equals(p.indi.get(i))) {
                    return false;
                }
            }
            return true;
        }
        return false;
    }