Dear Matpower Users, This post is a follow-up of my previous post: https://www.mail-archive.com/[email protected]/msg07377.html
I'm trying to solve SCUC for the 200-bus system (`case_ACTIVSg200`),and created the following example (code attached as .m file, and also pasted at the end). However, Matlab returns error message "Unrecognized function or variable 'PR_TAREALOAD'.", since the variable `PR_TAREALOAD` is not defined in the function `loadmd.m`. In addition, I'm aware of this way of defining profile.load is a bad idea, but I just haven't not figured out the "right way" of doing it using `apply_changes.m` or `apply_profile.m`. Thanks, Steven clear; clc; define_constants; casename = 'case_ACTIVSg200'; %% Raw Settings mpc = loadcase(casename); nb = size(mpc.bus, 1); nl = size(mpc.branch, 1); ng = size(mpc.gen, 1); nt = 24; % 24 hours na = 6; % 6 areas scenarios = scenarios_ACTIVSg200; % get a change table % PROFILES can take the form of % a struct with the following fields: % .wind: 3-dim array (NT x NJ_MAX x num wind sites) % .load: 3-dim array (NT x NJ_MAX x num load zones) load_data = scenarios(1:nt*na, end); % last column: loads of 6 areas area_load = reshape(load_data, na, nt)'; % nt-by-na matrix profiles.load = zeros(nt,1,na); profiles.load(:,1,:) = area_load; profiles.wind = []; %% Construct MOST struct mdi = loadmd(mpc, nt, [], [], [], profiles); %% Solve SCUC mpopt = mpoption(mpopt, 'most.dc_model', 0); %% Issues: % 1. Missing xgd data for the 200-bus synthetic system % 2. According to the comments in `loadmd.m`, profiles.load is from an % older version
clear; clc; define_constants; casename = 'case_ACTIVSg200'; %% Raw Settings mpc = loadcase(casename); nb = size(mpc.bus, 1); nl = size(mpc.branch, 1); ng = size(mpc.gen, 1); nt = 24; % 24 hours na = 6; % 6 areas scenarios = scenarios_ACTIVSg200; % get a change table % PROFILES can take the form of % a struct with the following fields: % .wind: 3-dim array (NT x NJ_MAX x num wind sites) % .load: 3-dim array (NT x NJ_MAX x num load zones) load_data = scenarios(1:nt*na, end); % last column: loads of 6 areas area_load = reshape(load_data, na, nt)'; % nt-by-na matrix profiles.load = zeros(nt,1,na); profiles.load(:,1,:) = area_load; profiles.wind = []; %% Construct MOST struct mdi = loadmd(mpc, nt, [], [], [], profiles); %% Solve SCUC mpopt = mpoption(mpopt, 'most.dc_model', 0); %% Issues: % 1. Missing xgd data for the 200-bus synthetic system % 2. According to the comments in `loadmd.m`, profiles.load is from an % older version
