Regulation of life history strategies with individuals in predictable and unpredictable environments