The invention discloses a
greenhouse energy forecasting method based on a
hybrid optimization
algorithm. The
greenhouse forecasting method based on the
hybrid optimization
algorithm comprises the following steps that (1), a
differential equation of temperature inside a
greenhouse is set; (2), parameters are initialized; (3), a
population is initialized, and the initial values of the parameters needing recognizing are generated randomly; (4), gen is made to be 1; (5), if gen is smaller than or equal to gens_max, the step (6) is carried out, and if gen is greater than gens_max, the step (15) is carried out; (6), k is made to be 1; (7), if k is smaller than or equal to max_k, the step (8) is carried out, or the step (10) is carried out; (8), a current optimal solution and a globally optimal solution are obtained; (9), k is made to be k+1, and the step (7) is carried out again; (10), pop_size grains are selected by utilization of a preferred function; (11), information of reserved M grains is used for regenerating a
population of the GA; (12), the grains obtained in the step (11) are used for intersection and variation of the GA; (13), the pop_size-M grains obtained by the GA and the reserved M grains of the PSO are combined to be pop_size new populations; (14), gen is made to be gen+1, and then the step (5) is carried out; (15), the minimum
fitness function value and the parameters are output finally, and the forecast energy value of the greenhouse is output.