Choose parameters which minimize a function
조회 수: 6 (최근 30일)
이전 댓글 표시
I have two arrays 13x2 with points x,y for the first array and x',y' for the second array. I also have a function of x and x' and i want to chose 8 x and 8 x' from the arrays, such that minimize this function. This function takes arrays of 8 with x and x'. Have you got any idea?
댓글 수: 0
답변 (1개)
dpb
2015년 7월 26일
Not sure I follow the intend exactly, but if I understand you wish to pick the subset of (8) values from each of two larger sets of (13) that minimizes a function of the two. Since
>> nchoosek(13,8)
ans =
1287
and there are two combinations of these, brute-force enumeration will be time-consuming.
The thought that comes to mind would be to use one of the minimization routines and solve in a least squares sense (linear or nonlinear, depending on the functional form is the reason for the genericity rather than a specific routine) and the choose the coefficients that are nearest in magnitude to those. That doesn't guarantee that is the minimum but would likely be a reasonable guesstimate unless the model is extremelty sensitive to one (or more) coefficient.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Direct Search에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!