%This script is originally developed by Dr Rodney and Landon Hoo with the
%original file attached at the reference link.
% Version 1.00 (Aug 2018)
%This model is develoepd in order to characterize the PV panels through the
%simplified five-parameter model.
%The simplified five-parameter model refer to derived photo-generated and
%diode saturation current, with manual algorithmic parameterization of
%diode ideality factor, shunt and series resistance.
%The characterization of PV module is performed by matching both of the
%measured and mathematically modelled I-V curve. The parameterization is
%carried out by adjusting diode ideality factor, shunt and series
%A total of three measured data is provided with this attached script.
%which are :
% Monocrystalline Panel 70W at 999W/m^2 'Mono70W999.csv'
% Polycrystalline Panel 70W at 1000W/m^2 'Poly70W1000.csv'
% Amorphous Thin Film Silicon Panel 100W at 1005W/m^2 'aSi100W1005.csv'
%Mean Absolute Percentage Error (MAPE) would be the error criterion and the
%algorithmic parameterization should terminate when minimum possible MAPE
%value is achieved.
% This edited version include following amendments:
% The data of .CSV file are edited, so that the Isc and Voc parameter
% value can be traced from the y- and x- intercept respectively from
% the I-V curve
% Previous model present the data through Mean Absolute Error (MAE) in
% percentage form. This model propose the much accurate definition error criterion
% of Mean Absolute Percentage Error (MAPE).
% This MATLAB script includes with traditional and proposed formula for
% both photo-generated and diode saturation current at script of line 120
% to line 123. User can make selection among the two provided formula.
% It is tested that the proposed formula give a better modelling
% accuracy for crystalline silicon PV modules' I-V curve.
Roy Teong (2019). PV Module's I-V Characteristic Curve Fitting Tools (https://www.mathworks.com/matlabcentral/fileexchange/72427-pv-module-s-i-v-characteristic-curve-fitting-tools), MATLAB Central File Exchange. Retrieved .
Corrected MAPE formula
Inspired by: PV Panel Characterization Tool