AMPL C# API¶
Contents¶
- Introduction
- Initial Setup
- Quick Start
- Complete listing
- Namespaces 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
- Close the AMPL object to free the resources
- Deployment Methods
- Class structure
- C# API Reference
- C# API Examples
- Example 1: First steps
- Example 2: Get and set AMPL options
- Example 3: Get and set data through DataFrames
- Example 4: Operate with multidimensional data
- Example 5: Assign all data to a model and solve it
- Example 6: Build an efficient frontier
- Example 7: Simple heuristic
- Example 8: Simple heuristic
- Example 10: Redirecting output and error messages
- API Reference