High-dimensional optimisation by reinforcement learning