Abstract
Genetic Network Programming(1) had the problem that the optimal number of nodes had to be determined by trial and error. In this paper, we propose a method for determining the optimal number of nodes in GNP automatically, using genetic algorithm based on the coexistence of heterogeneous populations. Furthermore, we apply the proposal method to the food capture problem of ants, and demonstrate its effectiveness.