  This simple model demonstrates that whether or not flexible responses are adaptive depends on the particular characteristics of the fitness differences that the responses make, the probability of the various states of the environment, and the reliability of the detector. The particular result is calculated assuming that detecting the environmental state and the flexible response system is free in evolutionary terms. More complete analyses would include the costs of these factors.