Optimization of the Throughput of a NOMA System