Optimisation of a Heterogeneous Array of Heaving Bodies