Our Windows CPLEX for AMPL is distributed as an executable file cplex.exe. But IBM's CPLEX distribution also contains a cplex.exe, which is the executable for a simple CPLEX command interface that is unrelated to AMPL; the "Incorrect usage ..." error message comes from that IBM cplex.exe. When you have two (or more) cplex.exe files on your computer, the AMPL IDE may not run the one that you intend, depending on where the files are located and how the Path environment variable is set.
You could try this quick fix. Use the Windows search feature to look for "cplex.exe" files on your computer. Identify the one that is in a subfolder of the IBM CPLEX distribution, and rename it to something else (say, cplex0.exe).
Bob Fourer
am...@googlegroups.com
=======