find minimal difference for vector (Optimalisation algorithm)
Afficher commentaires plus anciens
Dear Experts,
At the moment I'm trying to minimise a vector which compares experimental data with a function dependent on 3 unknown constants. Lets call these constants A, B and C. This means the function is dependent on f(x,y,A,B,C). The y-values from the experimental data must be as close as possible to the y-values of the function. Thus, I make a new vector which calculates the y-values of the function with the same x values used as for the experimental data. Now I want to compare both y-vectors and make an algorithm which uses iterations to obtain the must optimal values for A, B and C.
I know a function in matlab is present called fmincon, however this function makes use of an objective function, while I now have a vector which needs to be compared to another vector. Are there any build in matlab functions I can look into. Or is there a simple way to make this algorithm.
I would like to hear from you.
Kind regards,
Iljar Dickhof
Réponse acceptée
Plus de réponses (1)
See lsqcurvefit.
1 commentaire
Matt J
le 30 Sep 2021
Is there also a way to constrain the different parameters b/B0?
As you will see at the link I've provided, lsqcurvefit does let you impose upper and lower bounds.
Catégories
En savoir plus sur Nonlinear Optimization dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!