465b / nemf

A novel three step network-based general ecosystem modeling framework
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

add 'natural' stop in optimization if sufficiently converged #5

Closed 465b closed 4 years ago

465b commented 4 years ago

currently the optimization algorithm does as many steps as prescribed. It would be beneficial to define a convergence threshold to save computational time in cases where only marginal optimization are possible.

i.e. something like: for ii in range(maximal_gradient_descent_iterations): if convergence_threshold_reached == False: do_opt