[AMPL 24469] how to access solutions in the solution pool

Hi to everyone
I am trying to solve a Travelling Salesman Problem using the Matlab API of AMPL. I interested not only to the optimal solution, but also to the suboptimal ones and, as CPLEX allows to save many of them in the solution pool, I properly set the cplex_options and I got man .sol files. My question is how can I get the values of these solutions in the Matlab environment, as the command solution doesn’t seem to work ?

Thank you in advance


Hi Pietro.

How are you invoking to use the solution command? The following commands gives you some error?

ampl.eval(‘solution filename.sol;’)

Thank you so much for the answer. The command works properly, I was invoking it in the wrong way.

Thank you again