By applying the wavefront coding technique to an optical system, the depth of focus can be greatly increased. Several complicated methods have already been taken to optimize for the best pupil phase mask in ideal condition. Here a simple Strehl ratio based method with only the standard deviation met