Design of an optimization scheme for the wavesub array