El acceso a la versión del editor puede requerir la suscripción del recurso Access to the published version may require subscription This paper describes the use of grammatical evolution to obtain a predator-prey ecosystem of artificial beings associated with mathematical functions, whose fitness is also defined mathematically. The system supports the simultaneous evolution of several ecological niches and, through the use of standard measurements, makes it possible to explore the influence of the number of niches and the values of several parameters on "biological" diversity and similar functions. Sensitivity analysis tests have been made to find the effect of assigning different constant values to the genetic parameters that rule the evolution of the system and the predator-prey interaction, or of replacing them by functions of time. One of the parameters (predator efficiency) was found to have a critical range, outside which the ecologies are unstable; two others (genetic shortening rate and predator-prey fitness comparison logistic amplitude) are critical just at one side of the range), the others are not critical. The system seems quite robust, even when one or more parameters are made variable during a single experiment, without leaving their critical ranges. Our results also suggest that some of the features of biological evolution depend more on the genetic substrate and natural selection than on the actual phenotypic expression of that substrate.