ampl_init_session
Start an AMPL engine to enable optimization modeling. Call this first to initialize the session for subsequent AMPL operations.
Instructions
Start an AMPL engine. No engine exists until this is called.
workdir defaults to a per-session temporary directory; pass a path to work
against a real project. Every path ARGUMENT to a tool is resolved inside
it and an escape is refused - but this is not a sandbox: AMPL expression
text is not path-guarded (ampl_display("1 > 'C:/elsewhere.txt'")
writes outside it via AMPL's own redirection), and an include with an
absolute path reads from outside it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| solver | No | ||
| workdir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||