Hi all,
I’m trying to solve a system with interface limits. I followed the Matpower
Manual, and executed the following commands:

clear cll;clc;close all

mpc = loadcase('t_case30_userfcns');
mpc = toggle_iflims(mpc, 'on');

results = rundcpf(mpc);

I got the following error message:

Reference to non-existent field 'lin'.

Error in toggle_iflims>userfcn_iflims_int2ext (line 196)
results.if.mu.l = results.lin.mu.l.iflims /
results.baseMVA;

The results structure looks like this:

results =

  struct with fields:

       version: '2'
       baseMVA: 100
           bus: [30×13 double]
           gen: [6×21 double]
        branch: [41×17 double]
       gencost: [6×7 double]
      reserves: [1×1 struct]
            if: [1×1 struct]
       userfcn: [1×1 struct]
         order: [1×1 struct]
            et: 0.0090
       success: 1
    iterations: 1

Just FYI, everything works well when I use rundcopf().

Thanks for your time,
Steven
​

Reply via email to