I'm trying to write a document where I use AMPL, Python and I would also like to be able to show some of the outputs.
Problem is that the first python code is Script 1, the first AMPL is script 2, the second python is script 3, the output of the first python code is script 4, and so.
I want the different languages to be independent, a different counter and caption for the AMPL scripts, for the Python scripts and for the outputs.
Is this possible? Thank you in advance