MATLAB API Examples
This section lists a few examples in MATLAB. These are the same files that can be found in the examples directory of the distribution.
Example 4: Assign data to a model and solve it
DietModel.m
This example shows how to:
read an AMPL model (diet model from the AMPL book)
assign all the needed data from the API, using various forms of communication
Example 5: Compound sets
CompoundSet.m
This example shows how to operate with compound sets