Home > matpower6.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 %   Copyright (c) 2004-2016, Power Systems Engineering Research Center (PSERC)
0011 %   by Ray Zimmerman, PSERC Cornell
0012 %
0013 %   This file is part of MATPOWER.
0014 %   Covered by the 3-clause BSD License (see LICENSE file for details).
0015 %   See http://www.pserc.cornell.edu/matpower/ for more info.
0016 
0017 if nargin < 1
0018     verbose = 0;
0019 end
0020 
0021 tests = {};
0022 
0023 %% MATPOWER base test
0024 tests{end+1} = 't_test_fcns';
0025 tests{end+1} = 't_nested_struct_copy';
0026 tests{end+1} = 't_feval_w_path';
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_vdep_load';
0110 tests{end+1} = 't_total_load';
0111 tests{end+1} = 't_scale_load';
0112 tests{end+1} = 't_apply_changes';
0113 tests{end+1} = 't_psse';
0114 
0115 %% smartmarket tests
0116 if have_fcn('smartmarket')
0117     tests{end+1} = 't_off2case';
0118     if have_fcn('minopf')
0119         tests{end+1} = 't_auction_minopf';
0120     end
0121     tests{end+1} = 't_auction_mips';
0122     if have_fcn('pdipmopf')
0123         tests{end+1} = 't_auction_tspopf_pdipm';
0124     end
0125     tests{end+1} = 't_runmarket';
0126 end
0127 
0128 t_run_tests( tests, verbose );

Generated on Fri 16-Dec-2016 12:45:37 by m2html © 2005