Assume the wind is going from the top (pointing downward)
Adjust the angle of the sail/hull and rudder to get the boat moving as fast as possible.
You can find more information from
http://www.phys.unsw.edu.au/~jw/sailing.htmlVirtual Physics laboratory Original URL
Fu-Kwun Hwang, Dept. Of Physics, National Taiwan Normal University.