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: Negative value of cost function(objective function)
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 13
Registered: 12/9/13
Negative value of cost function(objective function)
Posted: Jan 1, 2014 11:32 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello every one,

I am developing my cost function as objective function .this function is nonlinear & my optimization model is unconstrained nolinear model.While i use fminsearch as solver i am gettting negative value for my cost function & one of my decision variable among two decision variable is also negative. May be fminsearch solver search from its default -Inf to Inf. I dont know whats going on? Can any body help me to figure out this problem. Please be informed that while i consider fixed value for my decision variables & put it into my objective function then i get the positive value.So there is no problem in my cost(objective) function.But while i run this by using fminsearch solver then i found negative value. I guess this is very basic problem. Does fminsearch has any default value for search area like -Inf to Inf .?.... so that its start taking negative value of my decision variable & giving
me negative result in final iteration.
So i am really looking for fruitful solution regarding this problem..


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.