Mixed Logic Dynamical Model of a Hydroelectric Power Plant