Learning agents in a monopolistic competition framework