ampl_solve
Solve the current AMPL optimization model and receive a concise summary of the solver outcome, including a tail of the output log.
Instructions
Solve the current model and summarise the outcome.
Returns a bounded tail of solver output, not the whole log. Read duals and reduced costs afterwards with ampl_get_data(name, suffix="dual"|"rc").
ok is only true when solve_result is exactly "solved", no error or
warning was captured, no output-stream failure marker was seen, AND at
least one objective was declared: AMPL happily reports solve_result
"solved" for a session with no model at all, or for a model with no
objective, even though no solver was ever reached.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| solver | No | ||
| options | No | ||
| session | No | ||
| log_tail | No | ||
| objective | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||