Mar 31, 2013

Batch operation in AMPL

To speed up the operations, you may put the commands into a file, and run them all automatically by typing include and the filename. The following is an example batch file (


model network.mod;

data network.dat;

option solver cplex;


display N;

display x;

So you run the optimization in AMPL command line:

ampl: include;  

No comments:

Post a Comment