Skip to content

Commit

Permalink
set initial guess away from the bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
kandersolar committed Sep 19, 2023
1 parent 9b4317e commit ea45348
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pvlib/pvarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ def fit_pvefficiency_adr(effective_irradiance, temp_cell, eta,

P_NAMES = ['k_a', 'k_d', 'tc_d', 'k_rs', 'k_rsh']
P_MAX = [+np.inf, 0, +0.1, 1, 1] # noQA: E221
P_MIN = [0, -12, -0.1, 0, 0] # noQA: E221
P0 = [eta_max, -6, 0.0, 0, 0] # noQA: E221
P_SCALE = [eta_max, 10, 0.1, 1, 1]
P_MIN = [0, -12, -0.1, 0.0, 0.0] # noQA: E221
P0 = [eta_max, -6, 0.0, 1e-3, 1e-3] # noQA: E221
P_SCALE = [eta_max, 10, 0.1, 1.0, 1.0]

SIGMA = 1 / np.sqrt(irradiance / 1000)

Expand Down

0 comments on commit ea45348

Please sign in to comment.