GET_MPC Returns the MATPOWER case struct. MPC = GET_MPC(OM) See also OPF_MODEL.
0001 function mpc = get_mpc(om) 0002 %GET_MPC Returns the MATPOWER case struct. 0003 % MPC = GET_MPC(OM) 0004 % 0005 % See also OPF_MODEL. 0006 0007 % MATPOWER 0008 % $Id: get_mpc.m,v 1.5 2010/04/26 19:45:25 ray Exp $ 0009 % by Ray Zimmerman, PSERC Cornell 0010 % Copyright (c) 2008-2010 by Power System Engineering Research Center (PSERC) 0011 % 0012 % This file is part of MATPOWER. 0013 % See http://www.pserc.cornell.edu/matpower/ for more info. 0014 % 0015 % MATPOWER is free software: you can redistribute it and/or modify 0016 % it under the terms of the GNU General Public License as published 0017 % by the Free Software Foundation, either version 3 of the License, 0018 % or (at your option) any later version. 0019 % 0020 % MATPOWER is distributed in the hope that it will be useful, 0021 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0022 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0023 % GNU General Public License for more details. 0024 % 0025 % You should have received a copy of the GNU General Public License 0026 % along with MATPOWER. If not, see <http://www.gnu.org/licenses/>. 0027 % 0028 % Additional permission under GNU GPL version 3 section 7 0029 % 0030 % If you modify MATPOWER, or any covered work, to interface with 0031 % other modules (such as MATLAB code and MEX-files) available in a 0032 % MATLAB(R) or comparable environment containing parts covered 0033 % under other licensing terms, the licensors of MATPOWER grant 0034 % you additional permission to convey the resulting work. 0035 0036 mpc = om.mpc;