A method of generating a computer program for control of an apparatus for photorefractive treatment of presbyopia by ablation of corneal tissue or a contact lens, comprising the following steps:(a) electing an eye model,(b) measuring the pupil diameter of the patient at far distance mesopically and at short distance photopically,(c) selecting wanted short and far distances regarding optimum sight,(d) calculating a global optimum regarding curvature (1/R) and asphericity (Q) of the cornea on the basis of the results obtained in steps (a) (b) and (c) by means of optical ray tracing and minimal spot diameter at the retina, and(e) deriving the computer program in accordance with the results of step (d).Alternatively step (d) includes determining a central steep island with a diameter in the range of 2 to 4 millimeters at the cornea and calculating a curvature and asphericity in the rest of the cornea.