dfo-algorithm icon indicating copy to clipboard operation
dfo-algorithm copied to clipboard

Loss of one iteration due to list not sorted after initialization

Open PierreMarion23 opened this issue 8 years ago • 0 comments

I believe that the way your code is implemented makes the first iteration of the main While loop in dfo_tr useless in some cases. Indeed, in the while loop, for the model to be correct, it is assumed that the lists Ynorms, Y, and f_values are sorted by _shift_sort_points. But you do not sort these lists before entering the while loop, thus making the first model computation wrong in some cases. Of course, this behavior only affects the first iteration since the lists are sorted at the end of the while loop.

PierreMarion23 avatar Dec 04 '17 20:12 PierreMarion23