Working conditions, characteristics, and development about the mainshaft bearing for wind turbines are investigated and mathematical model based on the rated dynamic load is proposed in this paper. With the help of the nonlinearly minimum function, viz., fmincon, in MATLAB toolbox, the constrained optimization method for the main parameters of the bearing is studied in order to improve the bearing life.