Optimal operation of multireservoir power systems