PV power estimation for solar panel systems

19 views (last 30 days)
SÜLEYMAN ÖZDUVEN
SÜLEYMAN ÖZDUVEN on 6 Jul 2022
Answered: Chetan on 17 Oct 2025 at 9:21
Hi, I work on a project that is related to solar panel power estimation. Simply, I have environmental variables like temperature, humidity, radiation, etc. By using each of these sensor values, their individual effect on power as a formulation is requirred to predict power value later on. If I have x and y variables, how can I come up with a polynomial or logarithmic approach that explains x-y relation?
Thanks

Answers (2)

Sayan
Sayan on 6 Sep 2023
I understand from your query that it is required to obtain a polynomial or logarithmic approach using the values of the output PV power as a function of temperature, humidity, radiation, etc. In Simulink, the variation power with temperature and radiation can be obtained. However, variation of power with humidity is not supported. The below-mentioned steps can be followed to obtain the result.
  1. Use the block PV Array (available at Simscape/Electrical/Specialized Power Systems/Sources) in Simulink to simulate the behavior of a PV array and connect it to the desired circuit model.
  2. Provide the desired waveform/values of irradiance "Ir" and temperature "T" as the input to the block.
  3. Connect the measurement port "m" to a "To File" block (available at Simulink/Sinks). Change the "Save format" field of the block as "Array". The measurement port output is a five-element vector. They can be found in the following PV Array documentation.
  4. Run the simulation.
  5. Load the ".mat" in MATLAB command window.
The array variable loaded in the workspace contains the values of "PV voltage," "PV current," "irradiance," and "temparature" in its 2nd, 3rd, 5th, and 6th rows, respectively, for each sample sample time stored in the 1st row of the array. The "PV voltage" and "PV current" can be extracted from the array and multiplied to obtain the power output ("y" variable) of the PV array. After obtaining the power, the relation with the temperature and irradiance ("x" variables) can be obtained using polynomial or logarithmic approach in the following way:
  • Polynomial Approach: To obtain polynomial regression "polyfit" and "polyval" functions can be used like the following code snippet.
coefficients = polyfit(x, y, degree);%obtain the coefficients of the polynomial according to the required degree
% Generate the polynomial equation
polynomial = polyval(coefficients, x);
% Plot the polynomial curve
plot(x, polynomial);
  • Logarithmic Approach: To obtain logarithmic regression "fittype" and "fit" functions can be used like the following code snippet.
x_log = log(x);
y_log = log(y);
% Define the logarithmic regression equation
logarithmicEquation = fittype('Desired function', 'Name', 'Value');%Define the the rquired Desired function and other parameters as required
% Fit the logarithmic regression model
fitResult = fit(x_log, y_log, logarithmicEquation);\
%Define the required logarithmic curve and plot the result
Further informations on the above used blocks/functions can be found in the following MATLAB documentations:
Hope this answers the query.

Chetan
Chetan on 17 Oct 2025 at 9:21
Estimating the power output of a solar PV system mainly depends on the amount of sunlight (solar irradiance) your location receives and the total capacity of your installed panels. You start with the panel’s rated power under standard conditions, but real-world factors like shading, temperature, wiring losses, and inverter efficiency reduce actual output. Typically, these losses are accounted for with a performance ratio (PR), usually between 0.75 and 0.85, which adjusts the theoretical output to a more realistic figure.
To get a quick estimate, you can multiply the system size (in kWp) by the average daily solar irradiance (kWh/m²/day) and the performance ratio. For example, a 5 kWp system receiving 5 kWh/m²/day irradiance with a PR of 0.8 would produce around 20 kWh per day. For detailed and site-specific analysis, simulation tools like PVsyst or SAM are recommended, as they factor in tilt, orientation, shading, and temperature effects to give a more precise forecast.

Categories

Find more on Solar Power in Help Center and File Exchange

Tags

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!