Skip to content

Commit edb5535

Browse files
committed
remove multiplier on voc for initial interval
1 parent b36b297 commit edb5535

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pvlib/singlediode.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ def _lambertw(photocurrent, saturation_current, resistance_series,
917917
# remove try/except when scipy>=1.15, and golden mean is retired
918918
try:
919919
from scipy.optimize.elementwise import find_minimum
920-
init = (0., 0.8*v_oc, 1.01*v_oc)
920+
init = (0., 0.5*v_oc, v_oc)
921921
res = find_minimum(_vmp_opt, init,
922922
args=(params['photocurrent'],
923923
params['saturation_current'],
@@ -928,7 +928,8 @@ def _lambertw(photocurrent, saturation_current, resistance_series,
928928
p_mp = -1.*res.f_x
929929
except ModuleNotFoundError:
930930
# switch to old golden section method
931-
p_mp, v_mp = _golden_sect_DataFrame(params, 0., v_oc * 1.14, _pwr_optfcn)
931+
p_mp, v_mp = _golden_sect_DataFrame(params, 0., v_oc * 1.14,
932+
_pwr_optfcn)
932933

933934
# Find Imp using Lambert W
934935
i_mp = _lambertw_i_from_v(v_mp, **params)

0 commit comments

Comments
 (0)