Dear all,
Error occurs when I try to run a cpf procedure.(Matpower4.1 ,Matlab2014a,
cpf package by Rui Bo)
*********************************************************************************
Here is the error shown in the command window:
.......
Switch to Phase 3: voltage prediction-correction (lambda decreasing).
[Info]: lambda is less than 0.
CPF finished.
[Info]: 0 data points contained in phase 3.
Undefined function or variable "predicted_list"
error cpf (line 286)
predictedCnt = size(predicted_list, 2)
*********************************************************************************
The case is as follows:
function [baseMVA, bus, gen, branch, areas, gencost] = casedisMV
baseMVA = 100;
bus = [
1 3 1.0 0.48 0 0 1 1.0 0.0 20 1
1.1 0.9
2 1 1.0 0.48 0 0 1 1.0 0.0 20 1 1.1
0.9
3 2 3.0 1.45 0 0 1 1.0 0.0 20 1
1.1 0.9
4 2 3.0 1.45 0 0 1 1.0 0.0 20 1
1.1 0.9
5 2 3.0 1.45 0 0 1 1.0 0.0 20 1
1.1 0.9
6 2 1.0 0.48 0 0 1 1.0 0.0 20 1
1.1 0.9
7 2 1.0 0.48 0 0 1 1.0 0.0 20 1
1.1 0.9
8 2 1.0 0.48 0 0 1 1.0 0.0 20 1
1.1 0.9
9 2 1.0 0.48 0 0 1 1.0 0.0 20 1
1.1 0.9
10 2 3.0 1.45 0 0 1 1.0 0.0 20 1
1.1 0.9
11 2 1.0 0.48 0 0 1 1.0 0.0 20 1
1.1 0.9
12 1 3.0 1.45 0 0 1 1.0 0.0 20 1
1.1 0.9
13 1 3.0 1.45 0 0 1 1.0 0.0 20 1 1.1
0.9
14 1 3.0 1.45 0 0 1 1.0 0.0 20 1 1.1
0.9
];
bus(:,3) = bus(:,3);
gen = [
1 0.0 0.0 9999 0 1 100 1 inf 0;
3 0.2 0.1 9999 0 1 100 1 0.02 0;
];
branch = [
1 2 0.408195 0.258735 0.0000
250 250 250 0 0 1
2 3 0.18122 0.124865 0.0000
250 250 250 0 0 1
3 4 0.039955 0.0184525 0.0000
250 250 250 0 0 1
4 5 0.04956 0.01806 0.0000
250 250 250 0 0 1
5 6 0.12936 0.04851 0.0000
250 250 250 0 0 1
8 7 0.122745 0.0513525 0.0000 250 250 250
0 0 1
3 8 0.0559 0.037375 0.0000 250 250 250
0 0 1
8 9 0.02712 0.0104 0.0000 250 250 250
0 0 1
9 10 0.0768075 0.0063525 0.0000 250 250 250
0 0 1
10 11 0.0302775 0.0109725 0.0000 250 250 250
0 0 1
1 12 0.4119825 0.437655 0.0000 250 250 250
0 0 1
12 13 0.4119825 0.437655 0.0000 250 250 250
0 0 1
13 14 0.150995 0.091195 0.0000 250 250 250
0 0 1
];
areas = [
1 5;
];
return;
*********************************************************************************
Command:
cpf('casedisMV', 11, 0.2 ,0.05)
*********************************************************************************
Thank you very much!
--
LEI ZHENGXIN
Shanghai Jiaotong University
Power System and Automation
Other Contact:[email protected]