Y3Al5O12:Ce phosphor was prepared by solid-state method, and the XRD pattern is consistent with the standard phase of YAG. Temperature dependence photoluminescence (PL) measurements of Y3Al5O12:Ce excited at 342 nm only show a broad emission band with peak at 532 nm is assigned to the combination of the lowest energy of 5d bands and the 2F5/2 and 2F7/2 states respectively. And full widths at half maximum (FWHM) and emission energy of Y3Al5O12:Ce emission increase with increasing temperature. The red shift and FWHM in the PL spectra with the temperature increasing are simulated by equations for the temperature dependence using LM, BFGS, DE, GA and SA algorithms, and compared the RMSE, SSE, R, R^2, DC and Chi-Square of each result respectively. Moreover, comparison of the result from the computer simulation in LM, BFGS, DE, GA and SA methods through compared values of the RMSE, SSE, R, R^2, DC and Chi-Square parameters are discussed.