Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Find minimum of single-variable function on fixed interval

`fminbnd`

is a one-dimensional minimizer
that finds a minimum for a problem specified by

$$\underset{x}{\mathrm{min}}f(x)\text{suchthat}{x}_{1}x{x}_{2}.$$

*x*, *x*_{1},
and *x*_{2} are finite scalars,
and *f*(*x*) is a function that
returns a scalar.

finds
the minimum for `x`

= fminbnd(`problem`

)`problem`

, where `problem`

is
a structure.

Create `problem`

by exporting a problem from
Optimization app, as described in Exporting Your Work.

The function to be minimized must be continuous.

`fminbnd`

might only give local solutions.`fminbnd`

can exhibit slow convergence when the solution is on a boundary of the interval. In such a case,`fmincon`

often gives faster and more accurate solutions.

`fmincon`

| `fminsearch`

| `optimset`

| `optimtool`

Was this topic helpful?