The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

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] = ...

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

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.