BartSmeets / zscan_fit

Fitting Code for Z-Scan Measurement
Other
0 stars 0 forks source link

2PA no Is2 stuck in loop #24

Closed BartSmeets closed 1 year ago

BartSmeets commented 1 year ago

2PA no is2 gets stuck in a loop.

It appears that scipy optimize cannot optimize with certain values of z0.

From first testing it appears that z0 must be integer. After one iteration z0 will most likely not be integer anymore and scipy.optimize fails

BartSmeets commented 1 year ago

L-BFGS-B algorithm for executing scipy.optimize.minimize got stuck in a loop. Should use Nelder-Mead algorithm, instead.