This paper proposes a new technique to train neural network (NN); with the result, we can solve some real-world application problems such as microwave components modeling and optimization. Its major advance is achieved in avoiding the testing error falling into local minimum. After the generalization, the ability of three-layer and four-layer NN is also checked; our investigations show that four-layer NN trained by the proposed training method can map the electromagnetic simulation of microwave components better than its counterpart. Besides, the modeling of microwave circuits and slotted patch antennas is examined to demonstrate the validity of this technique. Copyright © 2012 John Wiley & Sons, Ltd.