Reinforcement Learning-based Optimization of Multiple Access in Wireless Networks