Figure 3:
GA investment subroutine.