필터 지우기
필터 지우기

Singular matrix when running Load Flow on Simulink Powergui

조회 수: 12 (최근 30일)
Sergi Costa
Sergi Costa 2022년 11월 24일
편집: Nadia Shaik 2023년 3월 10일
When running a Load Flow from Powergui on simulink I am getting this warning, which makes all the results of the load flow to be NaN.
I have realized this only happens when, in the Load Flow Parameters tab, the base power is set to be a variable instead of a numerical value. i.e: when Base Power = 100e6 it works fine, however it is when I set Base Power = S_base (which is a variable I set on a matlab script I run before running the load flow) when I get this error.
% Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate. RCOND = NaN.
% > In LoadFlowTool
% In LoadFlowTool
% In LoadFlowTool
% In power_loadflow (line 131)
% In runpf (line 2)
% In Model (line 53)

답변 (1개)

Nadia Shaik
Nadia Shaik 2023년 3월 10일
편집: Nadia Shaik 2023년 3월 10일
Hi Sergi,
The warning message you are getting is likely indicating that there is a problem with the value of the base power you are using as a variable (i.e., S_base) in the Load Flow Parameters tab. This could be because the value of "S_base" is not being properly defined or calculated before the Load Flow is Run.
To ensure that "S_base" is properly defined and calculated, check the following:
  1. Make sure that "S_base" is defined in your MATLAB Script before it is used in the Load Flow Parameters tab. You can do this by verifying that the script is being run successfully without any errors.
  2. Try printing the value of "S_base" to the MATLAB Command Window before running the Load Flow to confirm that it is being properly calculated.
  3. Verify that the value of "S_base" is not NaN or Inf. If "S_base" is NaN or Inf, this could cause the Load Flow to return NaN results when passed as one of the arguments to the backslash (\) or forward slash (/) operators, which are commonly used to solve systems of linear equations.
  4. Check that the units of "S_base" are consistent with the units used in the Load Flow Parameters tab.
I hope the above information resolves your query.

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by