fogpy icon indicating copy to clipboard operation
fogpy copied to clipboard

Brute force faster than basin hopping?!

Open gerritholl opened this issue 5 years ago • 0 comments

It seems that the brute force method is much faster than the basin hopping method:

>>> t1=time.time(); print([self.lwc.optimize_cbh(1000., method='brute') for _ in range(10)]); t2=time.time(); print(t2-t1)
[417.0, 417.0, 417.0, 417.0, 417.0, 417.0, 417.0, 417.0, 417.0, 417.0]
30.48786234855652
>>> t1=time.time(); print([self.lwc.optimize_cbh(1000., method='basin') for _ in range(10)]); t2=time.time(); print(t2-t1)
[417.1936300818184, 417.19363008207864, 417.19363008230766, 417.1936300820221, 417.19363008157075, 417.1936300821362, 417.1936300825845, 417.1936300816707, 417.1936300828528, 417.19363008183757]
111.41780018806458

Here I have omitted the numerous warnings (see #9).

This issue is probably related to #11, and perhaps to #9 too.

gerritholl avatar Jun 04 '19 15:06 gerritholl