A layout printability optimization method and system is presented that may be used for enhancing the manufacturability and yield of integrated circuits. The method is based on a mathematical framework, which describes and solves layout printability problems using nonlinear numerical optimization techniques. The means to define an optimization objective, constraint functions, compute function derivatives, and solve the resulting system, are also presented.