Optimization technique for ED&PE