Study of a cogeneration plant for agro-food industry