Constrained control of arrays of wave energy devices