Configure optimization
configure_optimizationConfigure an OpenMDAO driver and specify design variables, objective, and constraints to set up optimization, DOE, or analysis runs.
Instructions
Set the driver (scipy SLSQP/L-BFGS-B/trust-constr/COBYLA/Nelder-Mead, doe, analysis) and, when given, the design variables, objective and constraints. Gradient-based optimizers need ref/ref0 or scaler on every design variable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"problem_id": "<problem_id>",
"driver": "<driver>"
},
"name": "configure_optimization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| driver | Yes | ||
| objective | No | ||
| problem_id | Yes | ||
| constraints | No | ||
| design_vars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| error | No | ||
| inputs | No | ||
| status | No | ||
| outputs | No | ||
| workdir | No | ||
| warnings | No | ||
| objective | No | ||
| problem_id | No | ||
| constraints | No | ||
| design_vars | No | ||
| n_subsystems | No | ||
| captured_output | No |