optimize_minimize
Minimize scalar objective functions with bounds, equality, or inequality constraints using SciPy optimization methods and optional parameters.
Instructions
Minimize a scalar expression with scipy.optimize.minimize.
Variables are named ``x0, x1, ...`` in the order of ``x0``. When ``method``
is omitted, SLSQP is used if ``constraints`` is given, otherwise L-BFGS-B
is used if ``bounds`` is given, otherwise scipy's default (BFGS).
Each constraint is ``{"kind": "ineq"|"eq", "expr": "..."}`` where ``expr``
is a sympy expression parsed with the variables and ``params``; ``ineq``
means ``expr >= 0`` and ``eq`` means ``expr == 0``.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x0 | Yes | ||
| bounds | No | ||
| method | No | ||
| params | No | ||
| objective | Yes | ||
| constraints | No |