options = optimoptions(solver)
options = optimoptions(solver, name, value)
| Parameter | Description |
|---|---|
| solver | solver name, function handle, or optimization problem. |
| name, value | option name and value pairs. |
| Parameter | Description |
|---|---|
| options | solver options object. |
optimoptions validates option names against the selected solver and returns an object convertible to a structure for direct solvers.
opts = optimoptions('fsolve', 'TolFun', 1e-8);
[x, fval] = fsolve(@(x) x - 3, 0, opts)
| Version | Description |
|---|---|
| 2.0.0 | initial version |