AMPLOutputs¶
-
class
AMPLOutputs
extends ArrayList<AMPLOutput>¶ Represents a set of AMPL textual outputs (represented by a list of code AMPLOutput endcode )
Methods¶
containsError¶
-
public boolean
containsError
()¶ Check whether the sequence contains an error of any kind
Returns: True if an error is present
containsErrorIgnorePresolve¶
-
boolean
containsErrorIgnorePresolve
()¶ Check whether the sequence contains an error of any kind BUT ‘error_presolve’
Returns: True if an error is present (but ‘error_presolve’)
containsErrorIgnorePresolveAndInvalidSubscripts¶
-
boolean
containsErrorIgnorePresolveAndInvalidSubscripts
()¶ Check whether the sequence contains an error of any kind BUT ‘error_presolve’
Returns: True if an error is present (but ‘error_presolve’)
containsWarning¶
-
public boolean
containsWarning
()¶ Check whether the sequence contains an error of any kind
Returns: True if an error is present
firstDisplayResultIndex¶
-
public int
firstDisplayResultIndex
()¶ Get the index of the first display message
Returns: Index of the display message, -1 if not existent
firstOfKind¶
-
public AMPLOutput
firstOfKind
(AMPLOutput.Kind kind)¶ Get the index of the first display message
Returns: Index of the display message, -1 if not existent
getErrors¶
-
public AMPLOutputs
getErrors
()¶ Get the errors in the sequence
Returns: Errors sequence, empty AMPLOutputs if none
getMessages¶
getMessages¶
-
public AMPLOutputs
getMessages
(String type)¶ Get messages of the specified type
Parameters: - type – Type of messages
Returns: Filtered structure