Description Usage Arguments Details
Parses AMPL code and evaluates it as a possibly empty sequence of AMPL declarations and statements.
1 | evaluate(ampl, amplstatements)
|
ampl |
|
amplstatements |
A collection of AMPL statements and declarations to be passed to the interpreter. |
As a side effect, it invalidates all entities (as the passed statements can contain any arbitrary command); the lists of entities will be re-populated lazily (at first access).
The output of interpreting the statements is passed to the current OutputHandler (see getOutputHandler and setOutputHandler).
By default, errors are reported as exceptions and warnings are printed on stdout. This behavior can be changed reassigning an ErrorHandler using setErrorHandler.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.