How can I improve the accuracy of Excel's SOLVER add-on for curve fitting?

  • Thread starter Thread starter flash
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on improving the accuracy of Excel's Solver add-on for curve fitting, specifically for the cosine function f(x)=a cos n (x-b) + c. Users report that Solver often finds local minima rather than the global minimum, influenced by the initial values of variables a, n, b, and c. A recommended alternative is the Didactic Optimization Tool for Excel, which may provide better results. However, the consensus is that achieving a global optimum remains a challenging task across all optimization tools.

PREREQUISITES
  • Understanding of curve fitting techniques
  • Familiarity with Excel's Solver add-on
  • Knowledge of optimization concepts, particularly local vs. global minima
  • Basic proficiency in using Excel for data analysis
NEXT STEPS
  • Explore the Didactic Optimization Tool for Excel for enhanced optimization capabilities
  • Research global optimization techniques and algorithms
  • Learn about alternative curve fitting methods in Excel
  • Investigate the limitations of Excel's Solver and potential workarounds
USEFUL FOR

This discussion is beneficial for data analysts, researchers, and anyone using Excel for curve fitting and optimization tasks, particularly those seeking to improve the accuracy of their models.

flash
Messages
66
Reaction score
0
Hi
I'm trying to use Excel to find a cosine function, f(x)=a cos n (x-b) + c, that best fits a whole lot of data points. I'm doing this using the Solver add-on in Excel. I have it set up to minimise the sum of the squared differences between each data point and the function's value. I'm pretty confident that its all set up correctly.
The problem is, solver does NOT do what it claims to do. It says it minimises the value in the cell by changing variables a, n, b and c but I can manually input variables that give a much lower value. Solver gives a different value depending on what is initially in the cells of variables a, n, b and c. I believe it is finding some kind of local minimum which is not the overall minimum.
Any ideas? I was hoping someone might have come across this problem with solver and know a workaround :smile:
 
Physics news on Phys.org
I know the question was several months ago, but this reply might have some use, even if for future activity. I haven't been very impressed with the Excel Solver, however I am very happy with the optimization Excel Add-in you can get from here:

http://digilander.libero.it/foxes/SoftwareDownload.htm

scroll down the page until you find "Didactic Optimization Tool for EXCEL".

Having said that, I'm not sure any tool can do a very good job on finding a global minimum. I think they all will provide a different answer depending on the starting point. Global optimization is very difficult. As a professor friend of mine told me: "finding the global optimum requires trying all possibilities".
 

Similar threads

  • · Replies 28 ·
Replies
28
Views
2K
Replies
5
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
6
Views
1K
Replies
2
Views
12K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 11 ·
Replies
11
Views
28K
Replies
8
Views
2K
  • · Replies 8 ·
Replies
8
Views
5K