Taking into account the spread of data centers around the world and their huge energy consumption, several researchers focused on task scheduling and resource allocation problem in order to minimize the energy consumed by the data center. Other initiatives focus on the implementation of green energy sources in order to minimize the consumption of fossil fuels and their emission of CO2. As part of the ANR DATAZERO project [34], several research teams aim at defining main concepts of a full green data center, only powered by renewable energies. To achieve this goal, it is mandatory to focus on the efficient management of an autonomous hybrid power system consisting of solar panels, wind turbines, batteries and fuel cell systems. The purpose of this work is not to show that a stand alone data center is economically viable but rather feasible. This paper proposes a set of models based on mixed integer linear programs able to manage the energy commitment to address the data center power demand. The approach takes the season and weather forecasts into account at the time of optimization.