Optimization and heat transfer model parameter estimation (rho, K, and Cp)
4 次查看(过去 30 天)
显示 更早的评论
Dear experts,
I'm working on a heat transfer model (finite difference method). I have a measured data and I want to fit the model by estimating the input parameters (rho, K, and Cp). Which optimization tool (fmincon, fminbnd, fminsearch, lsqnonlin, etc.) is more suitable to estimate the parameters?
Thank you.
11 个评论
Torsten
2024-5-23
编辑:Torsten
2024-5-23
I didn't know the product rho*cp cannot be estimated separately.
You can only estimate the product as one unknown parameter, not rho and cp separately as two unknown parameters. I already mentionned the reason: rho and cp are always used together as the product rho*cp in your model, and there are infinitly many combinations of rho and cp that would give a certain value as their product.
Does that mean if I use "pdepe", it won't be necessary to estimate k?
You will also have to estimate k if you use "pdepe", but you have a reliable integrator which is very important if you want to use its results to estimate parameters with one of the MATLAB tools @Raj suggested.
采纳的回答
Raj
2024-5-23
Hello @Sanley Guerrier
The choice of optimization tool depends on several factors including the nature of problem, the characteristics of model, and the specific requirements you have for the optimization process.
- fmincon- This function is suitable when your optimisation problem has constraints.If your parameters (rho, K, and Cp) satisfy certain bounds or constraints, fmincon might be a good option.
- fminbnd- This function is is designed for univariate function minimization bounded within a specified range. It is not directly applicable to your case since you are optimizing over multiple parameters.
- fminsearch- This function finds the minimum of an unconstrained multivariable function. If your problem does not require handling constraints explicitly, it can be an option.
- lsqnonlin- This function minimizes the sum of squares of nonlinear functions and is particularly suitable for data fitting problems. If your objective function can be expressed as the sum of squares of residuals between the model predictions and measured data, this can be a strong candidate.
Given that you want to fit a heart transfer model to measured data,and you're estimating parameters like density (rho), thermal conductivity (K), and specific heat capacity (Cp), 'lsqnonlin' seems the most suitable option due to its focus onnonlinear least squares problem.
However for a better understanding on the above functions, refer to the following documentation-
- fmincon- https://www.mathworks.com/help/optim/ug/fmincon.html
- fminbnd- https://www.mathworks.com/help/matlab/ref/fminbnd.html
- fminsearch- https://www.mathworks.com/help/matlab/ref/fminsearch.html
- lsqnonlin- https://www.mathworks.com/help/optim/ug/lsqnonlin.html
Hope you have a better idea now and are able to proceed further!
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Heat and Mass Transfer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!