[AMPL 25014] How to call AMPL in C++ program

Dear Robert,

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.

Many thanks in advance for your help.

Kinds regards.

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.

Many thanks for your help.