C# API Examples
This section lists a few examples in C#.
These are the same files that can be found in the examples directory of the distribution, and show the basic usage of the C# API.
Example 1: First steps
firstexample.cs
This example shows how to
Example 2: Get and set AMPL options
optionsexample.cs
This example shows how to:
Example 3: Get and set data through DataFrames
dataframeexample.cs
This example shows how to:
Example 4: Operate with multidimensional data
multidimensionalexample.cs
This example shows how to:
Example 5: Assign all data to a model and solve it
dietmodel.cs
This example shows how to:
Example 6: Build an efficient frontier
efficientfrontier.cs
This example shows how to:
Example 7: Simple heuristic
trackingmodel.cs
This example shows how to:
Example 8: Simple heuristic
trackingmodel.cs
This example shows how to:
Example 10: Redirecting output and error messages
OutputAndErrorRedirectionExample.cs
This example shows how to: