Parameter fitting with a numerical solution

hunt_mat
Homework Helper
Messages
1,816
Reaction score
33
Suppose I have some experimental data on the diffusion of some concentrate into a cylindrical medium. I don't a priori know the initial concentration or diffusion constant. I have some code to solve the PDE given in the cylindrical domain which solves the equation for given initial concentration and diffusion constant.

My initial thoughts was to do a parameter sweep and then once I have a matrix for this, so a least squares on the data and the numerical solution and do fminsearch on the resulting matrix.

I know that this is an incredibly inefficient method. I wondered if there was a clever way.
 
on Phys.org
Do you have the Global Optimization Toolbox? There are lots of tools in there to deal with this kind of problem. The general idea would not be to generate a bunch of solutions in advance, but to reduce the number of solutions of the PDE by calculating it selectively, refining the initial parameters depending on previous solutions.
 
DrClaude said:
Do you have the Global Optimization Toolbox? There are lots of tools in there to deal with this kind of problem. The general idea would not be to generate a bunch of solutions in advance, but to reduce the number of solutions of the PDE by calculating it selectively, refining the initial parameters depending on previous solutions.

Unfortunately I don't. What I did in the end was simply do a parameter sweep. With a double loop. I stored the square differences in an array and did a search for the minimum.

It's not the smartest solution but it gave a reasonable fit. I wanted to know if there was a clever way to go about this?
 
As the derivative is known, I recommend the Levenberg-Marquardt algorithm to both fit the data and find the unknown parameters.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 41 ·
2
Replies
41
Views
11K
  • · Replies 14 ·
Replies
14
Views
4K
Replies
0
Views
1K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 5 ·
Replies
5
Views
3K