Home > matpower5.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 'model'
   option to 'DC' 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 'model'
0004 %   option to 'DC' before calling OPF.
0005 %   See OPF for the details of input and output arguments.
0006 %
0007 %   See also RUNDCOPF.
0008 
0009 %   MATPOWER
0010 %   Copyright (c) 1996-2015 by Power System Engineering Research Center (PSERC)
0011 %   by Ray Zimmerman, PSERC Cornell
0012 %
0013 %   $Id: dcopf.m 2644 2015-03-11 19:34:22Z 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 [mpc, mpopt] = opf_args(varargin{:});
0020 mpopt = mpoption(mpopt, 'model', 'DC');
0021 [varargout{1:nargout}] = opf(mpc, mpopt);

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