Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在 Matlab 中找到 fminsearch 的约束版本,fminsearch 与无约束非线性最小化一起工作。这样的操作是什么?
fminbnd是有界非线性最小化函数,但仅限于一维。
fminbnd
fmincon是 fminsearch 的受限版本,但仅在优化工具箱中可用。
fmincon
如果你有优化工具箱,你应该使用fmincon,因为它更灵活,而且通常会更快。