Simulation code for "Weighted sum rate optimization for multicell MIMO systems with hardware-impaired transceivers" (ICASSP'14).