The AMPL model translator is a single-threaded application. However when you send a problem from AMPL to Gurobi, then Gurobi automatically uses multiple threads when it solves the problem, and there is nothing special that you need to do. To see how many threads Gurobi is using, specify
option gurobi_options 'outlev=1';
and in the log output that appears, look for a message like
Thread count was 4 (of 4 available processors)
If you want to use fewer threads, you can also specify the number of threads in the gurobi_options string, as in this example:
option gurobi_options 'outlev=1 threads=2';
Bob Fourer
am...@googlegroups.com
=======