In most of the telecommunication requirements, information needs to be carried at a long distance more than hundreds of kilometre and where the need of optical amplifier comes into picture to compensate mainly for the attenuation losses. Advancement in WDM and DWDM techniques enable the co-propagation of signals of different wavelength, thereby achieving data transmission speed as high as hundreds of gigabit per second over thousands of kilometre in a single mode fibre with most suitable optical amplifiers [1]. Erbium Doped Fiber Amplifiers have evolved as the most preferred optical amplifier and are widely used due to its transient suppression, wide band variable gain operation and also because of the low losses, amplification window where fiber has useable gain, high power transfer efficiency, large dynamic range, low noise figure etc. [2]. But, amplifier gain variations is an important concern in WDM networks, because the signal power fluctuations can be severe as the number of channel increases and the gain depends on the transmitted power. EDFA typically operated in two different modes viz. APC (Automatic power Control) and AGC (Automatic Gain Control), but, AGC method is mostly used in multi-channel WDM applications [3]. Several techniques were reported for the EDFA gain equalization, like, Thin film filters, long period fiber gratings, chirped fiber Bragg gratings etc[4]. There are different approaches being studied for automatic gain control in EDFA[5-8]. In this paper, we attempted one such automatic gain control technique to achieve an optimized flattened gain with very low noise figure with the help of numerical methods. The maximum value of the gain is 24.85 dB with a gain tilt of 1.65 dB, which is a very promising result since optical gain greater than 20 DB is very useful in WDM applications, with the advantage of having a flattened spectrum.