Home > matpower4.1 > dcopf.m

dcopf

PURPOSE ^

DCOPF Solves a DC optimal power flow.

SYNOPSIS ^

function [varargout] = dcopf(varargin)

DESCRIPTION ^

DCOPF  Solves a DC optimal power flow.
   This is a simple wrapper function around OPF that sets the PF_DC
   option to 1 before calling OPF.
   See OPF for the details of input and output arguments.

   See also RUNDCOPF.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [varargout] = dcopf(varargin)
0002 %DCOPF  Solves a DC optimal power flow.
0003 %   This is a simple wrapper function around OPF that sets the PF_DC
0004 %   option to 1 before calling OPF.
0005 %   See OPF for the details of input and output arguments.
0006 %
0007 %   See also RUNDCOPF.
0008 
0009 %   MATPOWER
0010 %   $Id: dcopf.m,v 1.26 2010/04/26 19:45:25 ray Exp $
0011 %   by Ray Zimmerman, PSERC Cornell
0012 %   Copyright (c) 1996-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 [mpc, mpopt] = opf_args(varargin{:});
0039 mpopt = mpoption(mpopt, 'PF_DC', 1);
0040 [varargout{1:nargout}] = opf(mpc, mpopt);

Generated on Mon 26-Jan-2015 15:00:13 by m2html © 2005