The options set by AMPL for CPLEX, using a command like
option cplex_options 'mipdisplay 2 poolstub multi';
are in effect for all subsequent CPLEX solves -- unless the options are changed by a later command of this form. You can check which options were passed to CPLEX each time, because CPLEX echoes them at the beginning of its solver output. Also CPLEX displays a message when solutions are written to the solution pool, and returns the number of solutions in the pool in <yourobjectivename>.npool. For example, you might see
ampl: option cplex_options 'poolstub multi poolcapacity 5';
ampl: solve;
CPLEX
12.6.3.0: poolstub multi
poolcapacity 5
CPLEX
12.6.3.0: optimal integer solution; objective 235625
108 MIP simplex iterations
0 branch-and-bound nodes
Wrote 2 solutions in solution pool
to files multi1.sol and multi2.sol.
suffix npool OUT;
ampl: print Total_Cost.npool;
2
Bob Fourer
am...@googlegroups.com
=======