MATLAB Answers

0

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

Asked by Nan Shen on 9 Nov 2011
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);

  0 Comments

Sign in to comment.

Tags

No tags entered yet.

2 Answers

Answer by Walter Roberson
on 9 Nov 2011

fmincon is part of the Global Optimization Toolbox.

  0 Comments

Sign in to comment.


Answer by Martyn Dorey on 24 May 2012

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

  0 Comments

Sign in to comment.