We've been working on the extension phase of our project, implementing resource heterogeneity. We've decide to implement resource heterogeneity spatially, by adding patches of resources associated with each task into defined areas in the world. We will be increasing or decreasing the sizes of the patches, thus changing the amount resources overlap. Isolated, small sized patches will lead to complete spatial heterogeneity, while large, completely overlapping patches will lead to complete spatial homogeneity.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFP85glt1aQxPIfiW9ADdVo4q_BsDmXOjyddiyHeYp0WjtR9I2-5SMFXawJaF2NKaiA1uyWzcOiDXAdWcxhyvs3S2giaEq3TVRok16rV9xULU_LKzss0-GwUn9F-ozOhiklnfzBxR1tx4/s1600/het+circles.JPG) |
Figure 1. Abstract diagram of spatial resource heterogeneity. Each colored circle represents a patch in the world where a given resource is available at a high inflow rate. The panel on the left represents, where the patches barely overlap, represents high spatial heterogeneity. The panel on the right, where patches overlap more and up to four resources are available in a given place in the world, represents lower spatial heterogeneity. |
We will be investigating how spatial heterogeneity affects phenotypic diversity. We believe that competition for resources drives diversity, and that by limiting the resources to certain areas in the world, we will be creating niches for different types of organisms to thrive in. As such, we predict similar results to Walker and Ofria (2012), in that intermediate levels of spatial heterogeneity will lead to maximum phenotypic diversity. When resources are completely heterogeneous (i.e. resources are not found in the world in conjunction with any other resources), there will be too much competition and struggle just to survive, so new phenotypes will not arise. On the other end of the spectrum, when resources are completely homogeneous (i.e. all resources are found in conjunction with every other resource), there will be no pressure to specialize in a certain set of tasks, so only generalists will thrive, leading to reduced diversity as well.
We will also be investigating how spatial heterogeneity affects the evolvability of complex tasks, specifically, the EQU task in Avida. We predict that this evolvability with peak at intermediate spatial heterogeneity as well; however, it may be possible that evolvability follows a more linear trend with spatial heterogeneity, because as resources become more homogenously distributed, there will be more of the "building block" simpler task resources available to use to do the complex EQU task.
To implement spatial heterogeneity in Avida, we are using gradient resources. Each resource is associated with one of the nine computational tasks, Not, Nand, And, Xor, OrNot, Nor, Or, AndNot, Equals
Our resources world in avida is shown below:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsmD0z3vhfNaDQ_mq86eg7TAwJ07X-nl5XCUIe9xSNa64QVanEBtSpIYshKlRHhMzyaqy-9nJE1mGYnNVl7EsWuJD1Bd2zVR-Ys0ws3COXcZG1HDOwbGDrfZ86cFix61TuS32LQ7TFXFU/s1600/rad7visualize.JPG) |
Figure something. Spatial resource heterogeneity. |
Isnt it cool. How'd we do that? We wrote a python script to randomly place each resource in two of the given patches. Here's that script below:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH-QnbRrNenOzF0-ufztc_0TBh8MrRVmtzyfijwtCgiHcdYmdV6kO807g5JHpXkf-fJDkOFxK1qNJkgF4JNPaYZsZO7W3je7yYtCUE7mcYtma6BbIWnf2gxlgsYqd0m2FTCU1lG-c-cqg/s1600/env6.JPG) |
Figure something. Python script to randomly place resources in two patches in the world. |
We are using the index of Shannon entropy of the resources in the world as a way to quantify spatial heterogeneity. To change the Shannon entropy of the resources, and thus the spatial heterogeneity, we are increasing or decreasing the radius of the patches. Here's how we predict radius to affect entropy.
Figure of entropy vs radius.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitrMc8YmJFswttJ9M_LUuzK-kjjcoEgYQzQrJpEkmJP4Kv88mM7LC6bn89hLhJJyx0DXqrhz-xkpXl8IhzPc2BCxWSrrumZODSoUa3zcCz-ZToBxmDvG_P3e6SY9QXEFDHsJMC3ONYIrU/s1600/ent+RAd+100.png) |
Figure. Entropy vs patch radius. |
Why? because uncertainty decreases with increasing radius until new niche is formed. Figure of heterogeneous patches to homogeneous patches.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgd9kEF-dz787z_tXJKP5CfvcpzgXud72oSj8IU9nbWD0JlpN_jbfFAzA6M1wI-yLm2PGnjWY61eHifCTOxxNIcaIGz0XvxP2Moee-jSGVLByfpCXN7mlDukwB8nsnCerxDvFQdlKvkcIY/s1600/Heterogenous+circles.png) |
Figure something. How overlap effects entropy. |
So what have we successfully done so far? We have done, with non-depletable resources, radius 6,8,10,15,20,24,36,48,59. IE all along the entropy vs radius spectrum. Heres what we are finding, as we predicted.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghFgmoEYETba2ApMVTORkxvLXGQ3NjMMZQ_bjMPJzYEPiCVvVrsRBv5ldL5GOhG4nA45iMjqag4edi5K11k1EYudyjN85oJSIEjbBdskDixcJjTEv0ShHFsdpt5Es5R0aCBnq5XAMnHrU/s1600/equ+vs+trt.JPG) |
Figure something. Entropy treatments (in terms of patch radius size). Top phenotypic diversity, bottom, evolve equals by update 100,000. |
Next step? To make these resources depleteable within a patch. We believe this will increase competition and may lead to more diversity. Starting with inflow 100 across these different patch radii, may change the inflow rates around to see how effects.