class MpResult
The return value of execute
and finish
is a table with a
few possible keys (only status
is always guaranteed to be present).
Reference:
- Corresponding C source code: lmplib.c#L649-L690
😱 Types incomplete or incorrect? 🙏 Please contribute!
fields
MpResult.log
The output to the “log” stream.
MpResult.term
The output to the “term” stream.
MpResult.error
The output to the “error” stream (only used for “out of memory”).
MpResult.status
The return value: 0
= good, 1
= warning, 2
= errors, 3
= fatal error.
MpResult.fig
An array of generated figures (if any).
When status
equals 3, you should stop using this MPlib instance
immediately, it is no longer capable of processing input.
If it is present, each of the entries in the fig
array is a userdata
representing a figure object, and each of those has a number of object methods
you can call: