Saving energy in greenhouses is an important issue for growers. Here, we present a method to minimize the total energy that is required to heat and cool a greenhouse. Using this method, the grower can define bounds for temperature, humidity, CO_{2} concentration, and the maximum amount of CO_{2} available. Given these settings, optimal control techniques can be used to minimize energy input. To do this, an existing greenhouse climate model for temperature and humidity was expanded to include a CO_{2} balance. Heating, cooling, the amount of natural ventilation, and the injection of industrial CO_{2}were used as control variables.

Standard optimization settings were defined in order to compare the grower’s strategy with the optimal solution. This optimization resulted in a theoretical 47% reduction in heating, 15% reduction in cooling, and 10% reduction in CO_{2} injection for the year 2012. The optimal control does not need to maintain a minimum pipe temperature, in contrast to current practice. When the minimum pipe temperature strategy of the grower was implemented, heating and CO_{2} were reduced by 28% and 10% respectively.

We also analyzed the effect of different bounds on optimal energy input. We found that as more freedom is given to the climate variables, the higher the potential energy savings. However, in practice the grower is in charge of defining the bounds. Thus, the potential energy savings critically depend on the choice of these bounds. This effect was analyzed by varying the bounds. However, because the effect can be demonstrated to the grower, the outcome has value to the grower with respect to decision making, an option that is not currently available in practice today.