Skip to content

fit_desoto runtime error #2425

@kurt-rhee

Description

@kurt-rhee

Describe the bug
Hey all, I am having trouble using the fit_desoto function for this particular longi 540 module. Parameters are from the CEC database and then converted into units of A/K V/K. I could switch to a different fitting model if required.

To Reproduce


TEMP_REF = 25.0
IRRAD_REF = 1000.0

{'vmp': 41.65, 'imp': 12.96518607, 'voc': 49.5, 'isc': 13.84716319, 'alpha_isc': 0.0052619220122, 'beta_voc': -0.13959, 'cells_in_series': 72, 'eg': 1.121, 'degdt': -0.0002677}

params, optimization_results = pvlib.ivtools.sdm.fit_desoto(
    v_mp=module["vmp"],
    i_mp=module["imp"],
    v_oc=module["voc"],
    i_sc=module["isc"],
    alpha_sc=module["alpha_isc"],
    beta_voc=module["beta_voc"],
    cells_in_series=module["cells_in_series"],
    EgRef=module["eg"],
    dEgdT=module["degdt"],
    temp_ref=TEMP_REF,  # type: ignore
    irrad_ref=IRRAD_REF,  # type: ignore
)
RuntimeError: Parameter estimation failed:
The iteration is not making good progress, as measured by the
 improvement from the last five Jacobian evaluations.

Expected behavior
Parameters calculated with no runtime error

Versions:

  • pvlib.__version__: 0.11.2
  • pandas.__version__: 2.2.3
  • python: 3.11.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions