minimize the sum of functions. (fmincon)
Afficher commentaires plus anciens
hi, sorry for my bad english
i have to minimize a function g(x,a,b):=(i=1 to N) Σ(f(x,a(i))-b(i)) in the variable x.
where a and b are N-dimensional vector that i have in input.
x must be greater than zero so i would use fmincon.
for a(i) and b(i) i would use anonymous parameter (parameterfun) to pass them to the function.
the problem for me is the sum.
for a fixed index "i" is easy for me to minimize (f(x,a(i))-b(i)). but how can pass to the minimization of the sum ?
thank you so much!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Solver Outputs and Iterative Display dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!