No default options available: the function 'fmincon' does not exist on the path.

22 次查看(过去 30 天)
I am running demo showing below, with error : No default options available: the function 'fmincon' does not exist on the path. what's wrong with my matlab?
load Data_MarkPound
dem2gbp = price2ret(Data);
[coeff,errors,LLF,innovations,sigmas] = garchfit(dem2gbp);

回答(2 个)

Walter Roberson
Walter Roberson 2011-11-9
fmincon is part of the Global Optimization Toolbox.

Martyn Dorey
Martyn Dorey 2012-5-24
I've just had this error in compiled code. It is not being picked because the optimset command uses a text reference to fmincon. optimset('fmincon'). To get around this error add the following line of text to your code which uses a pragma: %#function fmincon

类别

Help CenterFile Exchange 中查找有关 Nonlinear Optimization 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by