biogas power plant mathematical model