write_ampl_lines function

Writes an AMPL line