This article presents a methodology to optimize the maintenance planning model and minimize the total maintenance costs of a typical school building. It makes an effort to provide a maintenance schedule, focusing on maintenance costs. In the allocation of operations to the school equipment, the parameter of its age was also taken into account. A mathematical optimization model to minimize the school maintenance cost in a three-year period was provided in the GAMS software with CPLEX solver. Finally, the optimum architecture of the Perceptron multi-layer neural network was used to predict the schedule of equipment operations and maintenance costs. The Multi-layer Perceptron (MLP) optimum neural network results, with minor Mean Squared Error (MSE) and Root Mean Squared Error (RMSE), indicated that the proposed model was capable of predicting the schools' maintenance costs with high accuracy. According to the results, the school's maintenance cost for the intended three-year period based on the Weibull distribution was equal to 15361 currency units per hour, in which the "heating and cooling system" has the highest contribution. Hence, accurate and definite planning can prevent damages to such equipment, while saving the school's maintenance costs.