MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > fminsearch not finding a basic minimum 

Subject: fminsearch not finding a basic minimum From: Shannon Date: 3 Feb, 2011 23:20:04 Message: 1 of 8 
This is my first shot at applying one of the builtin minimization functions within MATLAB, and i'm getting a puzzling result that the command seems to be unable to find the minimum of a simple function. 
Subject: fminsearch not finding a basic minimum From: Shannon Date: 3 Feb, 2011 23:41:04 Message: 2 of 8 
ok....simple solution to a simple question  I didn't realize that fminsearch would look for negative solutions. I just had to use the absolute value of the function and it worked perfectly. 
Subject: fminsearch not finding a basic minimum From: Phil Goddard Date: 3 Feb, 2011 23:49:04 Message: 3 of 8 
or use fzero instead of fminsearch 
Subject: fminsearch not finding a basic minimum From: Think blue, count tw... Date: 4 Feb, 2011 17:52:02 Message: 4 of 8 
On 03/02/11 5:41 PM, Shannon wrote: 
Subject: fminsearch not finding a basic minimum From: Alan Weiss Date: 4 Feb, 2011 19:31:21 Message: 5 of 8 
On 2/4/2011 12:52 PM, Think blue, count two. wrote: 
Subject: fminsearch not finding a basic minimum From: Miroslav Balda Date: 5 Feb, 2011 21:20:04 Message: 6 of 8 
"Shannon" wrote in message <iifd74$hnp$1@fred.mathworks.com>... 
Subject: fminsearch not finding a basic minimum From: Miroslav Balda Date: 5 Feb, 2011 21:44:03 Message: 7 of 8 
Sorry, 
Subject: fminsearch not finding a basic minimum From: Shannon Date: 7 Feb, 2011 01:02:04 Message: 8 of 8 
Thanks for all your suggestions. As Alan pointed out, the fminsolve function is a derivitivefree method so i've stuck with the original approach of just using the absolute value. 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.