Modeling and optimisation of wind turbine driving permanent magnet synchronous generator