In a paper by G. Buck and J. Simon a potential energy function for piecewise linear knots is introduced. This associates an energy surface with any given knot type. Descriptions of the energy surface are in some sense invariants of the knot type. The global minimum might be considered to be a canonical position for the knot. In this paper we discuss an algorithm for computing minimums of the energy: approximation of the gradient flow. Pictures of minima for the trefoil and for the figure eight knot are included.