optimal values of input values to a function based on data

11 次查看(过去 30 天)
I have a function which takes parameters - a,b,c,d,e and the returns the computed value z.
I also have the ground truth values of z. I would like to compute the optimal parameters of a,b,c,d,e which would minimize the error between the ground truth value z and the approximated value of z by the function.
I have data for the computed values of z and the ground truth values z given different input values of a,b,c,d,e.
z1 = function (a1 + b1 + c1 + d1 + e1) and error1 = (z1 - z1') where z1 is returned value and z1' is the ground truth
z2 = function (a2 + b2 + c2 + d2 + e2) and error2 = (z2 - z2') where z1 is returned value and z2' is the ground truth
.... .... ... .... .... . ....
zn = function (an + bn + cn + dn + en) and errorn = (zn - zn') where z1 is returned value and zn' is the ground truth
Any suggestions how to find the optimal parameters of a,b,c,d and e using Matlab?
I was thinking of optimization solver to get optimal values of a,b,c,d,e for my data but I am not sure how to proceed.
Thanks a lot for your help in advance
Ash

回答(1 个)

Alan Weiss
Alan Weiss 2018-10-24
This sounds like Curve Fitting via Optimization. If you have Optimization Toolbox™, you can also look for suggestions in Nonlinear Data-Fitting.
Alan Weiss
MATLAB mathematical toolbox documentation

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by