The main goal of the wastewa management consists in reducing the annual trying to supply the load demand using sources (RES) (such as photovoltaic panels cogeneration engine). Based on real case carried on design process of the stoch cogeneration engine for covering the optimization model is implemented to mi electricity costs. The model is tested on a ch each year season, under various load profi sources production.