I need to make my C++ program call my model I have written in AMPL to solve a subproblem of the model and use the results for the remaining of C++ program.
I am writing to you to ask how I must proceed to do this.
To call AMPL from C++, use AMPL’s C++ API. It includes C++ methods for setting up an AMPL model, sending data to AMPL, solving, and returning results to be used in your C++ program.