Re: FindMinimum [] more elegantly?
- To: mathgroup at christensen.cybernetics.net
- Subject: [mg1630] Re: FindMinimum [] more elegantly?
- From: pehowland at taz.dra.hmg.gb (Paul E. Howland)
- Date: Fri, 7 Jul 1995 01:03:07 -0400
- Organization: Defence Research Agency
In article <3sisqj$n9u at news0.cybernetics.net>, MAMER at utkvx.utk.edu writes: >I have a question regarding putting the FindMinimum[] into a more elegant >form than the following which I've been using. >I have a function sumOfSquares of two variables a and b and I need to feed >back the values of a and b into the FindMinimum expression as follows: >alpha= 0.234; beta= .567; >FindMinimum[ sumOfSquares, {a,alpha}, {b,beta}, MaxIterations->100 ] >alpha= a/.%[[2,1]] ; beta=b/. %[[2,2]]; > >I used the to click on the last two statements several times til the output >of FindMinimum stabilizes. Is there an elegant way to do this? Yes. Just increase MaxIterations to a larger value, or alter the value of AccuracyGoal or PrecisionGoal. Restarting FindMinimum with a closer starting point is no different from letting it continue processing from that point. Paul E Howland Long Range Ground Radar Systems Section tel. +44 (0)1684 895767 LSC2 Division, Room BY209 fax. +44 (0)1684 896315 Defence Research Agency email: PEHOWLAND at DRA.HMG.GB Malvern, Worcs, WR14 3PS, UK. -----------------------------------------------------------------------------