AMPL C/C++ API¶
Contents¶
- Introduction
 - Getting started
 - Class structure
 - C++ quick start
- Complete listing
 - Needed headers and AMPL environment creation
 - Load a model from file
 - Solve a problem
 - Get an AMPL entity in the programming environment (get objective value)
 - Modify model data (assign values to parameters)
 - Get numeric values from variables
 - Get arbitrary values via ampl expressions
 - Delete the AMPL object to free the resources
 
 - C++ API reference
 - C++ API examples
- Example 1: First steps
 - Example 2: Get and set AMPL options
 - Example 3: Use AMPL asynchronously
 - Example 4: Get and set data through DataFrames
 - Example 5: Operate with multidimensional data
 - Example 6: Assign all data to a model and solve it
 - Example 7: Build an efficient frontier
 - Example 8: Simple heuristic