There is a way to write piecewise-linear functions of one variable in AMPL; it is described in Chapter 17 of the AMPL book:
http://ampl.com/BOOK/CHAPTERS/20-piecewise.pdf. This feature can be used to describe a piecewise-linear approximation to a nonlinear function of one variable, but you will need to choose your breakpoints and then compute the slopes between the breakpoints.
Probably a better approach is to use, instead of CPLEX, a solver designed for nonlinear problems; many nonlinear solvers are described on the solver pages of the AMPL website:
http://ampl.com/products/solvers/. You can experiment with these solvers using the NEOS Server:
http://www.neos-server.org/neos/.
Bob Fourer
am...@googlegroups.com
=======