added detection.limit parameter to find.optima and livpotential