Modeling and optimization of a hybrid system for the energy supply of a “Green” building”