Home > matpower5.1 > 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 %   Copyright (c) 2004-2015 by Power System Engineering Research Center (PSERC)
0011 %   by Ray Zimmerman, PSERC Cornell
0012 %
0013 %   $Id: test_matpower.m 2660 2015-03-20 02:10:18Z ray $
0014 %
0015 %   This file is part of MATPOWER.
0016 %   Covered by the 3-clause BSD License (see LICENSE file for details).
0017 %   See http://www.pserc.cornell.edu/matpower/ for more info.
0018 
0019 if nargin < 1
0020     verbose = 0;
0021 end
0022 
0023 tests = {};
0024 
0025 %% MATPOWER base test
0026 tests{end+1} = 't_nested_struct_copy';
0027 tests{end+1} = 't_mpoption';
0028 tests{end+1} = 't_loadcase';
0029 tests{end+1} = 't_ext2int2ext';
0030 tests{end+1} = 't_jacobian';
0031 tests{end+1} = 't_hessian';
0032 tests{end+1} = 't_margcost';
0033 tests{end+1} = 't_totcost';
0034 tests{end+1} = 't_modcost';
0035 tests{end+1} = 't_hasPQcap';
0036 tests{end+1} = 't_mplinsolve';
0037 tests{end+1} = 't_mips';
0038 tests{end+1} = 't_qps_matpower';
0039 tests{end+1} = 't_miqps_matpower';
0040 tests{end+1} = 't_pf';
0041 tests{end+1} = 't_cpf';
0042 tests{end+1} = 't_islands';
0043 tests{end+1} = 't_opf_model';
0044 if have_fcn('fmincon')
0045     tests{end+1} = 't_opf_fmincon';
0046 end
0047 if have_fcn('minopf')
0048     tests{end+1} = 't_opf_minopf';
0049 end
0050 tests{end+1} = 't_opf_mips';
0051 tests{end+1} = 't_opf_mips_sc';
0052 if have_fcn('pdipmopf')
0053     tests{end+1} = 't_opf_tspopf_pdipm';
0054 end
0055 if have_fcn('scpdipmopf')
0056     tests{end+1} = 't_opf_tspopf_scpdipm';
0057 end
0058 if have_fcn('tralmopf')
0059     tests{end+1} = 't_opf_tspopf_tralm';
0060 end
0061 if have_fcn('ipopt')
0062     tests{end+1} = 't_opf_ipopt';
0063 end
0064 if have_fcn('knitro')
0065     tests{end+1} = 't_opf_knitro';
0066 end
0067 if have_fcn('bpmpd')
0068     tests{end+1} = 't_opf_dc_bpmpd';
0069 end
0070 if have_fcn('clp')
0071     tests{end+1} = 't_opf_dc_clp';
0072 end
0073 if have_fcn('cplex')
0074     tests{end+1} = 't_opf_dc_cplex';
0075 end
0076 if have_fcn('glpk')
0077     tests{end+1} = 't_opf_dc_glpk';
0078 end
0079 if have_fcn('gurobi')
0080     tests{end+1} = 't_opf_dc_gurobi';
0081 end
0082 if have_fcn('ipopt')
0083     tests{end+1} = 't_opf_dc_ipopt';
0084 end
0085 tests{end+1} = 't_opf_dc_mips';
0086 tests{end+1} = 't_opf_dc_mips_sc';
0087 if have_fcn('mosek')
0088     tests{end+1} = 't_opf_dc_mosek';
0089 end
0090 if have_fcn('quadprog')
0091     tests{end+1} = 't_opf_dc_ot';
0092 end
0093 if have_fcn('sdp_pf')
0094     tests{end+1} = 't_opf_sdpopf';
0095     tests{end+1} = 't_testglobalopt';
0096     tests{end+1} = 't_insolvablepf';
0097     tests{end+1} = 't_insolvablepf_limitQ';
0098     tests{end+1} = 't_insolvablepfsos';
0099     tests{end+1} = 't_insolvablepfsos_limitQ';
0100 end
0101 tests{end+1} = 't_opf_userfcns';
0102 tests{end+1} = 't_opf_softlims';
0103 tests{end+1} = 't_runopf_w_res';
0104 tests{end+1} = 't_dcline';
0105 tests{end+1} = 't_get_losses';
0106 tests{end+1} = 't_makePTDF';
0107 tests{end+1} = 't_makeLODF';
0108 tests{end+1} = 't_printpf';
0109 tests{end+1} = 't_total_load';
0110 tests{end+1} = 't_scale_load';
0111 tests{end+1} = 't_psse';
0112 
0113 %% smartmarket tests
0114 if have_fcn('smartmarket')
0115     tests{end+1} = 't_off2case';
0116     if have_fcn('minopf')
0117         tests{end+1} = 't_auction_minopf';
0118     end
0119     tests{end+1} = 't_auction_mips';
0120     if have_fcn('pdipmopf')
0121         tests{end+1} = 't_auction_tspopf_pdipm';
0122     end
0123     tests{end+1} = 't_runmarket';
0124 end
0125 
0126 t_run_tests( tests, verbose );

Generated on Fri 20-Mar-2015 18:23:34 by m2html © 2005