Adaptation, in biology, the process by which a species becomes fitted to its environment; it is the result of natural selection’s acting upon heritable variation over several generations. Organisms are adapted to their environments in a great variety of ways: in their structure, physiology, and genetics, in their locomotion or dispersal, in their means of defense and attack, in their reproduction and development, and in other respects.
Sex and the Single Guppy
This is not an easy choice for organisms living in the wild. If an organism wants to produce offspring, they need to survive and to reproduce. If they don't survive, their genes won't be passed on but if they don't reproduce their genes won't be passed either? But what if both options require different traits?
I very much recommend reading the research conducted by evolutionary biologist John Endler on a population of guppies.