The problem is to find the shape of a hanging chain. It can be defined as the configuration that minimizes the potential energy.
The ampl model produces an output file
xy.out.
The plot shown below was produced with gnuplot
using the following command:
plot "xyout" w lines