|
|
fmincon errors
Im trying to use fmincon to minimise an objective function subject to 2 linear equality constraints. I get the following errors and I can interpret them. mu is a known vector, while the objective is being minimised subject to w.
Warning: usage: [bnds,rowd,sens,rowp,rowg] = mu(matin,blk,opt)
> In mu at 45
In objfun at 2
In fmincon at 540
??? Output argument "bnds" (and maybe others) not assigned during call to "G:\Mathworks Matlab
R2009b\toolbox\robust\rctobsolete\mutools\commands\mu.m>mu".
Error in ==> objfun at 2
f=(0.88*atan((mu*w-mu_p)/0.88))^2 - (2.25/3)*(0.88*atan((mu*w-mu_p)/0.88))^3 +
((2.25^2)/12)*(0.88*atan((mu*w-mu_p)/0.88))^4
Error in ==> fmincon at 540
initVals.f = feval(funfcn{3},X,varargin{:});
Caused by:
Failure in initial user-supplied objective function evaluation. FMINCON cannot continue.
|
|
0
|
|
|
|
Reply
|
Mohammad
|
9/2/2010 1:32:05 AM |
|
"Mohammad Sharik " <fe09me@mail.wbs.ac.uk> wrote in message
news:i5muql$2ab$1@fred.mathworks.com...
> Im trying to use fmincon to minimise an objective function subject to 2
> linear equality constraints. I get the following errors and I can
> interpret them. mu is a known vector, while the objective is being
> minimised subject to w.
>
> Warning: usage: [bnds,rowd,sens,rowp,rowg] = mu(matin,blk,opt)
>> In mu at 45
> In objfun at 2
> In fmincon at 540
> ??? Output argument "bnds" (and maybe others) not assigned during call to
> "G:\Mathworks Matlab
> R2009b\toolbox\robust\rctobsolete\mutools\commands\mu.m>mu".
>
> Error in ==> objfun at 2
> f=(0.88*atan((mu*w-mu_p)/0.88))^2 -
> (2.25/3)*(0.88*atan((mu*w-mu_p)/0.88))^3 +
> ((2.25^2)/12)*(0.88*atan((mu*w-mu_p)/0.88))^4
Do you pass a vector mu into your objective function? If not, then your use
of mu in your objective function is being interpreted as a call to an
obsolete function in Robust Control Toolbox. Use the techniques described
in this section of the documentation to pass the mu vector into your
objective function as an additional input.
http://www.mathworks.com/access/helpdesk/help/toolbox/optim/ug/brhkghv-7.html
--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com
|
|
0
|
|
|
|
Reply
|
slord (13285)
|
9/2/2010 3:50:07 AM
|
|
|
1 Replies
367 Views
(page loaded in 0.031 seconds)
Similiar Articles: Error using fmincon - comp.soft-sys.matlabfmincon vs lsqnonlin - comp.soft-sys.matlab I've passed in sum of squared errors for FMINCON, and a vector of errors for LSQNONLIN. It is also surprising to me how ... Error using ==> feval Undefined function or method 'obj_fcn_power ...Hello, I have to run an optimization using the function fmincon with 'interior-point' as optimization algorithm. I want to provide the algorithm w... exemple Fmincon - comp.soft-sys.matlabimane wrote: > Hi, > I have a probleme to use "Fmincon". > i want u to send ... Error using fmincon - comp.soft-sys.matlab fmincon - Find minimum of constrained nonlinear ... Tangent Portfolio using fmincon - comp.soft-sys.matlabError using fmincon - comp.soft-sys.matlab Internal Error: This error occurred inside a MathWorks function. Function ... Tangent Portfolio using fmincon - comp.soft-sys ... Error in SVD when estimating GARCH model using garchfit - comp ...Mean Variance optimization with FMINCON - comp.soft-sys.matlab ... Error in SVD when estimating GARCH model using garchfit - comp ..... specification with GARCH(1,1)-in ... fmincon vs lsqnonlin - comp.soft-sys.matlabI've passed in sum of squared errors for FMINCON, and a vector of errors for LSQNONLIN. It is also surprising to me how they perform and what they return. Mean Variance optimization with FMINCON - comp.soft-sys.matlab ...Error using fmincon - comp.soft-sys.matlab Mean Variance optimization with FMINCON - comp.soft-sys.matlab ... Basically, I use mean square error as my output of my fitness ... help! optimization stopped - comp.soft-sys.matlabHi, I am trying to use fmincon to get the minimum value of a particular function. ... to less than eps (about 2e-16) you are attempting to get essentially zero error ... Portfolio optimization using minimum-variance (fmincon) - comp ...Error using fmincon - comp.soft-sys.matlab Mean Variance optimization with FMINCON - comp.soft-sys.matlab ... Basically, I use mean square error as my output of my fitness ... Probleme of fmincon - comp.soft-sys.matlab> Hi all, > i'm comparing two curves with the function fmincon > > i have 1 question ... Error in SVD when estimating GARCH model using garchfit - comp ... When convergence ... fmincon() error too many input arguments - MATLAB Answers - MATLAB ...For more information about the "too many input parameters" problem, please see my comments in your previous question about minimization. Matlab: fmincon error - programming.itags.orgprogramming.itags.org: Matlab question: fmincon error, created at:Wed, 07 May 2008 04:26:00 GMT with 742 bytes, last updated: Sunday, July 22, 2012, 2 Answers. 7/26/2012 3:18:54 AM
|
|
|
|
|
|
|
|
|