Home > matpower7.1 > extras > syngrid > lib > t > t_sgvm_mpc_perm.m

t_sgvm_mpc_perm

PURPOSE ^

T_MPC_PERM

SYNOPSIS ^

function [mpc_array, status] = t_sgvm_mpc_perm(quiet)

DESCRIPTION ^

T_MPC_PERM

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [mpc_array, status] = t_sgvm_mpc_perm(quiet)
0002 %T_MPC_PERM
0003 
0004 %   SynGrid
0005 %   Copyright (c) 2018, Power Systems Engineering Research Center (PSERC)
0006 %   by Eran Schweitzer, Arizona State University
0007 %
0008 %   This file is part of SynGrid.
0009 %   Covered by the 3-clause BSD License (see LICENSE file for details).
0010 
0011 if nargin < 1
0012     quiet = 0;
0013 end
0014 %rng(seed, 'twister'); % for reproducibility
0015 %rng('default');
0016 
0017 num_tests = 1;
0018 t_begin(num_tests, quiet);
0019 define_constants;
0020 %% create data sample
0021 %mpcsamp = loadcase('case_ACTIVSg10k');
0022 % mpcsamp = loadcase('case_ACTIVSg2000');
0023 mpcsamp = loadcase('case118');
0024 % mpctop  = loadcase('case3375wp');
0025 mpopt = mpoption('opf.ac.solver', 'MIPS');
0026 % smpl_opt = struct('node', 'direct');
0027 smpl_opt = struct('node', 'kde');
0028 
0029 opt   = struct('ea', struct('generations', 10, 'inds', 5, 'select', 5, 'randnew', 0, 'initfill', 1),...
0030         'mpopt', mpopt, 'smpl_opt', smpl_opt, ...
0031         'parallel', struct('use', 0, 'numcores', 20),'verbose', 0,...
0032         'nodeperm', struct('verbose', 0, 'niter', 1),...
0033         'branchperm', struct('verbose',0,'niter', 2),...
0034         'shunts', struct('verbose', 1));
0035 % opt = struct('verbose', 2, 'nodeperm', struct('verbose', 1),'branchperm', struct('verbose', 1));
0036 % data = sgvm_mpc2data(mpcsamp);
0037 [~, topo] = sgvm_mpc2data(mpcsamp);
0038 %N = 3000;
0039 % have_fcn('ipopt', 0);
0040 %[mpc_array, status] = syngrid(topo, mpcsamp);%, opt);
0041 [mpc_array, status] = syngrid(topo, mpcsamp, struct('verbose', 1));

Generated on Fri 09-Oct-2020 11:21:31 by m2html © 2005