I need to find the constrained version of fminsearch in Matlab, the fminsearch works with unconstrained nonlinear minimization. What is such operation?

有帮助吗?

解决方案

fminbnd is a bounded non-linear minimisation function, but it is restricted to one-dimension.

fmincon is the constrained version of fminsearch, but is only available in the Optimisation Toolbox.

If you have the Optimation toolbox, you should use fmincon, as it is more flexible, and in general will be faster.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top