A method for modeling the current–voltage curve of a PV module for outdoor conditions