0001 function [mpc_array, status] = t_sgvm_mpc_perm(quiet)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 if nargin < 1
0012 quiet = 0;
0013 end
0014
0015
0016
0017 num_tests = 1;
0018 t_begin(num_tests, quiet);
0019 define_constants;
0020
0021
0022
0023 mpcsamp = loadcase('case118');
0024
0025 mpopt = mpoption('opf.ac.solver', 'MIPS');
0026
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
0036
0037 [~, topo] = sgvm_mpc2data(mpcsamp);
0038
0039
0040
0041 [mpc_array, status] = syngrid(topo, mpcsamp, struct('verbose', 1));