1. A method for designing an object placed in an optimization apparatus and viewed by a lens having at least one non-uniform parameter represented by a distribution function, the method comprising: a) creating a digital file of an original object; b) calculating a deformed shape of the object according to a predetermined position in the optimization apparatus and one of the distribution function of the lens or an inverse of the distribution function of the lens; c) creating a digital file of the deformed object; d) fabricating the deformed object according to the digital file of the deformed object; and e) positioning the deformed object inside the optimization apparatus.