RESEARCH ON TWO LAYER OPTIMIZATION OF WIND