Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: optimization toolbox error message
Replies: 1   Last Post: May 18, 2010 12:44 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Hugo

Posts: 6
Registered: 5/14/10
optimization toolbox error message
Posted: May 14, 2010 1:25 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

hi everybody
I´m new in this forum.
What I would like to know is how can I fix an error on my Matlab program.
The program is a Finite element updating program for structural static analysis that controls Ansys and get the results to Matlab that optimizes it with an objective function.
The error message is about the objective function: The errors are:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%
End diagnostic information

??? Error using ==> c:/matlab6p5/toolbox/optim/private/nlconst
FUN must return a non-empty objective function.

Error in ==> C:\MATLAB6p5\toolbox\optim\fmincon.m
On line 458 ==> [X,FVAL,lambda,EXITFLAG,OUTPUT,GRAD,HESSIAN]=...

Error in ==> C:\hUGO_rar\exper33x.m
On line 206 ==> [x, fval, exitflag, output, lambda] = ...


My objective function code is defined as:

options = optimset('LargeScale','off','Display','iter','Diag nostics','on'...
,'MaxFunEvals',300,'MaxIter',4,'DiffMaxChange',1e+ 1,'DiffMinChange',1.0e-001,'TolFun',1.0e-04);
[x, fval, exitflag, output, lambda] = ...
fmincon(@MACfun6x,x0,[],[],[],[],LB,UB,[],options)

can you please tell me what might be wrong?
thanks and regards
Lopessilva



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.