Surface relief gratings are proven to be valuable tools for polarization control, spectral and spatial filtering in the optics and electromagnetics community. With the use of guided mode resonance effect, one can achieve desired reflection/transmission properties of thin film gratings that can be applied in laser resonators as filters that partain lowest order transverse resonator modes, hence them being amplified in the gain medium. Such media can be: solid state laser systems, Vertical Surface Emitting Lasers (VCSELs), semiconductor laser systems, nanolasers, etc. This work mainly focuses on the application of genetic algorithm with Rigorous Coupled Wave Analysis algorithm to solve the inverse design problem for angular filter applications.