passing an array value to fmincon
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Kaiser Ahmed Bhuiyan
el 22 de Jun. de 2020
Comentada: Kaiser Ahmed Bhuiyan
el 22 de Jun. de 2020
Hi , my objective function is shown above. I have to minimize this function for variable "K(capital)", "r" , "C"
however for "a_s" i have an array which i need to pass to the objective function.
My question is ...how can i pass "a_s" to the objective function ? I don't have a clear picture of fmincon function and finding it troubling for this equation.
It would be great ... if somebody can give me the sketch or outline of the code for this function !
2 comentarios
Matt J
el 22 de Jun. de 2020
Editada: Matt J
el 22 de Jun. de 2020
What does it mean to you to "minimize" an array-valued function? Do you want N different minimizing values of K,r,C for each of the N elements a_s(i)? Or do you have a mathcing array of observed sigma values as well which you want are trying to curve fit? If the latter, you should probably use lsqcurvefit as opposed to fmincon.
Ver también
Categorías
Más información sobre Least Squares 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!