1. A method implemented by a computer for reducing optical proximity effect in a design layout to be included in a mask used in a lithographic process, the method comprising: dividing patterns within the design layout into edge segments; identifying a plurality of neighboring edge segments that interact with each other due to the optical proximity effect; and computing a local multi-variable solver that tracks an effect of movement of the identified neighboring edge segments for reducing the optical proximity effect.