Receding-horizon control for max-plus linear systems with discrete actions using optimistic planning