Regulation of population density due to individual differences and patchy environment