Genetic programming (GP) involves finding both the functional form and the numeric coefficients for the model. So it does not require the assumption of any functional relationship between dependent and independent variables. The use of GP for solving long-term forecasting of the electric power demand problem is discussed; several cases which have different combinations of terminal sets and functional sets were investigated. The results of annual forecasting of electric power demand are presented for various cases using the GP model. The GP model is compared with the regression model. (C) 1997 Elsevier Science S.A.