0001 function mpc = t_case30_userfcns
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 mpc.version = '2';
0014
0015
0016
0017 mpc.baseMVA = 100;
0018
0019
0020
0021 mpc.bus = [
0022 1 3 0 0 0 0 1 1 0 135 1 1.05 0.95;
0023 2 2 21.7 12.7 0 0 1 1 0 135 1 1.1 0.95;
0024 3 1 2.4 1.2 0 0 1 1 0 135 1 1.05 0.95;
0025 4 1 7.6 1.6 0 0 1 1 0 135 1 1.05 0.95;
0026 5 1 0 0 0 0.19 1 1 0 135 1 1.05 0.95;
0027 6 1 0 0 0 0 1 1 0 135 1 1.05 0.95;
0028 7 1 22.8 10.9 0 0 1 1 0 135 1 1.05 0.95;
0029 8 1 30 30 0 0 1 1 0 135 1 1.05 0.95;
0030 9 1 0 0 0 0 1 1 0 135 1 1.05 0.95;
0031 10 1 5.8 2 0 0 3 1 0 135 1 1.05 0.95;
0032 11 1 0 0 0 0 1 1 0 135 1 1.05 0.95;
0033 12 1 11.2 7.5 0 0 2 1 0 135 1 1.05 0.95;
0034 13 2 0 0 0 0 2 1 0 135 1 1.1 0.95;
0035 14 1 6.2 1.6 0 0 2 1 0 135 1 1.05 0.95;
0036 15 1 8.2 2.5 0 0 2 1 0 135 1 1.05 0.95;
0037 16 1 3.5 1.8 0 0 2 1 0 135 1 1.05 0.95;
0038 17 1 9 5.8 0 0 2 1 0 135 1 1.05 0.95;
0039 18 1 3.2 0.9 0 0 2 1 0 135 1 1.05 0.95;
0040 19 1 9.5 3.4 0 0 2 1 0 135 1 1.05 0.95;
0041 20 1 2.2 0.7 0 0 2 1 0 135 1 1.05 0.95;
0042 21 1 17.5 11.2 0 0 3 1 0 135 1 1.05 0.95;
0043 22 2 0 0 0 0 3 1 0 135 1 1.1 0.95;
0044 23 2 3.2 1.6 0 0 2 1 0 135 1 1.1 0.95;
0045 24 1 8.7 6.7 0 0.04 3 1 0 135 1 1.05 0.95;
0046 25 1 0 0 0 0 3 1 0 135 1 1.05 0.95;
0047 26 1 3.5 2.3 0 0 3 1 0 135 1 1.05 0.95;
0048 27 2 0 0 0 0 3 1 0 135 1 1.1 0.95;
0049 28 1 0 0 0 0 1 1 0 135 1 1.05 0.95;
0050 29 1 2.4 0.9 0 0 3 1 0 135 1 1.05 0.95;
0051 30 1 10.6 1.9 0 0 3 1 0 135 1 1.05 0.95;
0052 ];
0053
0054
0055
0056 mpc.gen = [
0057 1 23.54 0 150 -20 1 100 1 80 0 0 0 0 0 0 0 0 0 0 0 0;
0058 2 60.97 0 60 -20 1 100 1 80 0 0 0 0 0 0 0 0 0 0 0 0;
0059 22 21.59 0 62.5 -15 1 100 1 50 0 0 0 0 0 0 0 0 0 0 0 0;
0060 27 26.91 0 48.7 -15 1 100 1 55 0 0 0 0 0 0 0 0 0 0 0 0;
0061 23 19.2 0 40 -10 1 100 1 30 0 0 0 0 0 0 0 0 0 0 0 0;
0062 13 37 0 44.7 -15 1 100 1 40 0 0 0 0 0 0 0 0 0 0 0 0;
0063 ];
0064
0065
0066
0067 mpc.branch = [
0068 1 2 0.02 0.06 0.03 130 130 130 0 0 1 -360 360;
0069 1 3 0.05 0.19 0.02 130 130 130 0 0 1 -360 360;
0070 2 4 0.06 0.17 0.02 65 65 65 0 0 1 -360 360;
0071 3 4 0.01 0.04 0 130 130 130 0 0 1 -360 360;
0072 2 5 0.05 0.2 0.02 130 130 130 0 0 1 -360 360;
0073 2 6 0.06 0.18 0.02 65 65 65 0 0 1 -360 360;
0074 4 6 0.01 0.04 0 90 90 90 0 0 1 -360 360;
0075 5 7 0.05 0.12 0.01 70 70 70 0 0 1 -360 360;
0076 6 7 0.03 0.08 0.01 130 130 130 0 0 1 -360 360;
0077 6 8 0.01 0.04 0 32 32 32 0 0 1 -360 360;
0078 6 9 0 0.21 0 65 65 65 0 0 1 -360 360;
0079 6 10 0 0.56 0 32 32 32 0 0 1 -360 360;
0080 9 11 0 0.21 0 65 65 65 0 0 1 -360 360;
0081 9 10 0 0.11 0 65 65 65 0 0 1 -360 360;
0082 4 12 0 0.26 0 65 65 65 0 0 1 -360 360;
0083 12 13 0 0.14 0 65 65 65 0 0 1 -360 360;
0084 12 14 0.12 0.26 0 32 32 32 0 0 1 -360 360;
0085 12 15 0.07 0.13 0 32 32 32 0 0 1 -360 360;
0086 12 16 0.09 0.2 0 32 32 32 0 0 1 -360 360;
0087 14 15 0.22 0.2 0 16 16 16 0 0 1 -360 360;
0088 16 17 0.08 0.19 0 16 16 16 0 0 1 -360 360;
0089 15 18 0.11 0.22 0 16 16 16 0 0 1 -360 360;
0090 18 19 0.06 0.13 0 16 16 16 0 0 1 -360 360;
0091 19 20 0.03 0.07 0 32 32 32 0 0 1 -360 360;
0092 10 20 0.09 0.21 0 32 32 32 0 0 1 -360 360;
0093 10 17 0.03 0.08 0 32 32 32 0 0 1 -360 360;
0094 10 21 0.03 0.07 0 32 32 32 0 0 1 -360 360;
0095 10 22 0.07 0.15 0 32 32 32 0 0 1 -360 360;
0096 21 22 0.01 0.02 0 32 32 32 0 0 1 -360 360;
0097 15 23 0.1 0.2 0 16 16 16 0 0 1 -360 360;
0098 22 24 0.12 0.18 0 16 16 16 0 0 1 -360 360;
0099 23 24 0.13 0.27 0 16 16 16 0 0 1 -360 360;
0100 24 25 0.19 0.33 0 16 16 16 0 0 1 -360 360;
0101 25 26 0.25 0.38 0 16 16 16 0 0 1 -360 360;
0102 25 27 0.11 0.21 0 16 16 16 0 0 1 -360 360;
0103 28 27 0 0.4 0 65 65 65 0 0 1 -360 360;
0104 27 29 0.22 0.42 0 16 16 16 0 0 1 -360 360;
0105 27 30 0.32 0.6 0 16 16 16 0 0 1 -360 360;
0106 29 30 0.24 0.45 0 16 16 16 0 0 1 -360 360;
0107 8 28 0.06 0.2 0.02 32 32 32 0 0 1 -360 360;
0108 6 28 0.02 0.06 0.01 32 32 32 0 0 1 -360 360;
0109 ];
0110
0111
0112
0113
0114
0115 mpc.gencost = [
0116 2 0 0 3 0.02 2 0;
0117 2 0 0 3 0.0175 1.75 0;
0118 2 0 0 3 0.0625 1 0;
0119 2 0 0 3 0.00834 3.25 0;
0120 2 0 0 3 0.025 3 0;
0121 2 0 0 3 0.025 3 0;
0122 ];
0123
0124
0125
0126 mpc.reserves.zones = [
0127 1 1 1 1 1 1;
0128 0 0 0 0 1 1
0129 ];
0130
0131
0132 mpc.reserves.req = [60; 20];
0133
0134
0135
0136 mpc.reserves.cost = [ 1.9; 2; 3; 4; 5; 5.5 ];
0137
0138
0139
0140
0141 mpc.reserves.qty = [ 25; 25; 25; 25; 25; 25 ];
0142
0143
0144
0145 mpc.if.map = [
0146 1 -12;
0147 1 -14;
0148 1 -15;
0149 1 -36;
0150 2 15;
0151 2 25;
0152 2 26;
0153 2 -32;
0154 3 12;
0155 3 14;
0156 3 -25;
0157 3 -26;
0158 3 32;
0159 3 36;
0160 ];
0161
0162
0163
0164
0165 mpc.if.lims = [
0166 1 -15 25;
0167 2 -10 20;
0168 ];