Skip to content
Prev 246245 / 398506 Next

optimize

On Jan 3, 2011, at 9:52 AM, Muhammad Rahiz wrote:

            
^???^

Joshua Wiley's answer made me realize that your question was different  
than I thought. At this point maybe you should have made your  
objective function match on the coordinate difference to be minimized.  
You are at this point taking the absolute difference between an x- 
value, 203. and a y-value. fc(x). That makes little sense. You can use  
predict() as Joshua showed you or you can change your objective  
functions so it is more meaningful. Furthermore, I have had better  
success with squared differences that with abs(differences). I'm not  
sure whether that is due to the availability of a more informative  
derivative.  (Again, looks like homework and I refrain from posting  
completed solutions.)
--
David Winsemius, MD
West Hartford, CT