optimal values of input values to a function based on data

11 visualizaciones (últimos 30 días)
Ash Kumar
Ash Kumar el 24 de Oct. de 2018
Respondida: Alan Weiss el 24 de Oct. de 2018
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

Respuestas (1)

Alan Weiss
Alan Weiss el 24 de Oct. de 2018
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

Categorías

Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by