Home > matpower4.0 > t > test_matpower.m

test_matpower

PURPOSE ^

TEST_MATPOWER Run all MATPOWER tests.

SYNOPSIS ^

function test_matpower(verbose)

DESCRIPTION ^

TEST_MATPOWER  Run all MATPOWER tests.
   TEST_MATPOWER runs all of the MATPOWER tests.
   TEST_MATPOWER(VERBOSE) prints the details of the individual tests
   if VERBOSE is true.

   See also T_RUN_TESTS.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function test_matpower(verbose)
0002 %TEST_MATPOWER  Run all MATPOWER tests.
0003 %   TEST_MATPOWER runs all of the MATPOWER tests.
0004 %   TEST_MATPOWER(VERBOSE) prints the details of the individual tests
0005 %   if VERBOSE is true.
0006 %
0007 %   See also T_RUN_TESTS.
0008 
0009 %   MATPOWER
0010 %   $Id: test_matpower.m,v 1.39 2010/11/24 22:31:33 cvs Exp $
0011 %   by Ray Zimmerman, PSERC Cornell
0012 %   Copyright (c) 2004-2010 by Power System Engineering Research Center (PSERC)
0013 %
0014 %   This file is part of MATPOWER.
0015 %   See http://www.pserc.cornell.edu/matpower/ for more info.
0016 %
0017 %   MATPOWER is free software: you can redistribute it and/or modify
0018 %   it under the terms of the GNU General Public License as published
0019 %   by the Free Software Foundation, either version 3 of the License,
0020 %   or (at your option) any later version.
0021 %
0022 %   MATPOWER is distributed in the hope that it will be useful,
0023 %   but WITHOUT ANY WARRANTY; without even the implied warranty of
0024 %   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0025 %   GNU General Public License for more details.
0026 %
0027 %   You should have received a copy of the GNU General Public License
0028 %   along with MATPOWER. If not, see <http://www.gnu.org/licenses/>.
0029 %
0030 %   Additional permission under GNU GPL version 3 section 7
0031 %
0032 %   If you modify MATPOWER, or any covered work, to interface with
0033 %   other modules (such as MATLAB code and MEX-files) available in a
0034 %   MATLAB(R) or comparable environment containing parts covered
0035 %   under other licensing terms, the licensors of MATPOWER grant
0036 %   you additional permission to convey the resulting work.
0037 
0038 if nargin < 1
0039     verbose = 0;
0040 end
0041 
0042 tests = {};
0043 
0044 %% MATPOWER base test
0045 tests{end+1} = 't_loadcase';
0046 tests{end+1} = 't_ext2int2ext';
0047 tests{end+1} = 't_jacobian';
0048 tests{end+1} = 't_hessian';
0049 tests{end+1} = 't_totcost';
0050 tests{end+1} = 't_modcost';
0051 tests{end+1} = 't_hasPQcap';
0052 if have_fcn('anon_fcns')
0053     tests{end+1} = 't_mips';
0054 else
0055     tests{end+1} = 't_mips6';
0056 end
0057 tests{end+1} = 't_qps_matpower';
0058 tests{end+1} = 't_pf';
0059 if have_fcn('fmincon')
0060     tests{end+1} = 't_opf_fmincon';
0061 end
0062 if have_fcn('minopf')
0063     tests{end+1} = 't_opf_minopf';
0064 end
0065 tests{end+1} = 't_opf_mips';
0066 tests{end+1} = 't_opf_mips_sc';
0067 if have_fcn('pdipmopf')
0068     tests{end+1} = 't_opf_tspopf_pdipm';
0069 end
0070 if have_fcn('scpdipmopf')
0071     tests{end+1} = 't_opf_tspopf_scpdipm';
0072 end
0073 if have_fcn('tralmopf')
0074     tests{end+1} = 't_opf_tspopf_tralm';
0075 end
0076 if have_fcn('ipopt')
0077     tests{end+1} = 't_opf_ipopt';
0078 end
0079 if have_fcn('constr')
0080     tests{end+1} = 't_opf_constr';
0081 end
0082 if have_fcn('bpmpd')
0083     tests{end+1} = 't_opf_lp_den';
0084     tests{end+1} = 't_opf_lp_spr';
0085     tests{end+1} = 't_opf_lp_spf';
0086     tests{end+1} = 't_opf_dc_bpmpd';
0087 end
0088 if have_fcn('cplex')
0089     tests{end+1} = 't_opf_dc_cplex';
0090 end
0091 if have_fcn('ipopt')
0092     tests{end+1} = 't_opf_dc_ipopt';
0093 end
0094 tests{end+1} = 't_opf_dc_mips';
0095 tests{end+1} = 't_opf_dc_mips_sc';
0096 if have_fcn('mosek')
0097     tests{end+1} = 't_opf_dc_mosek';
0098 end
0099 if have_fcn('quadprog')
0100     tests{end+1} = 't_opf_dc_ot';
0101 end
0102 tests{end+1} = 't_opf_userfcns';
0103 tests{end+1} = 't_runopf_w_res';
0104 tests{end+1} = 't_makePTDF';
0105 tests{end+1} = 't_makeLODF';
0106 tests{end+1} = 't_total_load';
0107 tests{end+1} = 't_scale_load';
0108 
0109 %% smartmarket tests
0110 if exist('runmarket', 'file') == 2
0111     tests{end+1} = 't_off2case';
0112     if have_fcn('minopf')
0113         tests{end+1} = 't_auction_minopf';
0114     end
0115     tests{end+1} = 't_auction_mips';
0116     if have_fcn('pdipmopf')
0117         tests{end+1} = 't_auction_tspopf_pdipm';
0118     end
0119     tests{end+1} = 't_runmarket';
0120 end
0121 
0122 %% sopf tests
0123 if exist('apply_contingency', 'file') == 2
0124     tests{end+1} = 't_apply_contingency';
0125     tests{end+1} = 't_c3sopf_sopf2';
0126 end
0127 
0128 t_run_tests( tests, verbose );

Generated on Mon 26-Jan-2015 14:56:45 by m2html © 2005