pvpltools.power_conversion.fit_adr_converter_core#
- pvpltools.power_conversion.fit_adr_converter_core(v_norm, p_norm, p_loss_norm, method='trf', **kwargs)[source]#
Determine the ADR model “b” coefficients for power converter losses.
This is a convenience function that calls the scipy curve_fit function with suitable parameters and defaults.
- Parameters:
v_norm (numeric) – Normalized voltage, power and power loss, unitless. These arguments must be “broadcastable” to the same shape.
p_norm (numeric) – Normalized voltage, power and power loss, unitless. These arguments must be “broadcastable” to the same shape.
p_loss_norm (numeric) – Normalized voltage, power and power loss, unitless. These arguments must be “broadcastable” to the same shape.
method ({'lm', 'trf', 'dogbox'}, optional) – Method to use for optimization. See least_squares for more details. Default is ‘trf’.
kwargs – Optional keyword arguments passed to curve_fit.
- Returns:
b (1-D array) – Nine optimal values for the model “b” coefficients.
pcov (2-D array) – The estimated covariance of b. See curve_fit for details.
Author: Anton Driesse, PV Performance Labs