AMPL APIs#

Python API

Explore the AMPL Python API Documentation for detailed guidance, examples, and references to integrate AMPL with Python.

Python API
R API

Explore the AMPL R API Documentation for detailed guidance, examples, and references to integrate AMPL with R.

R API
C# API

Explore the AMPL C# API Documentation for detailed guidance, examples, and references to integrate AMPL with C#.

C# API
C++ API

Explore the AMPL C++ API Documentation for detailed guidance, examples, and references to integrate AMPL with C++.

C++ API
C API

Explore the AMPL C API Documentation for detailed guidance, examples, and references to integrate AMPL with C.

C API
Java API

Explore the AMPL Java API Documentation for detailed guidance, examples, and references to integrate AMPL with Java.

Java API
MATLAB API

Explore the AMPL MATLAB API Documentation for detailed guidance, examples, and references to integrate AMPL with MATLAB.

MATLAB API

Python API#

  • Installation:

$ python -m pip install amplpy

R API#

  • Installation:

install.packages("Rcpp", type="source")
install.packages("https://ampl.com/dl/API/rAMPL.tar.gz", repos=NULL)

C# API#

C++ API#

C API#

Java API#

MATLAB API#

Solver Callbacks#

AMPL solver libraries with callbacks.