Solving a Golf Puzzle with Mixed Integer Linear Programming

Here's a golf puzzle from Sam Loyd: Everybody is playing golf now, and even the lazy ones who a few weeks ago declared how much pleasanter it was to swing in a shady hammock, have caught the golf fever and are chasing the ball around the golf links. I am …