Home > matpower7.0 > lib > 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-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 https://matpower.org for more info.
0016 
0017 [mpc, mpopt] = opf_args(varargin{:});
0018 mpopt = mpoption(mpopt, 'model', 'DC');
0019 [varargout{1:nargout}] = opf(mpc, mpopt);

Generated on Mon 24-Jun-2019 15:58:45 by m2html © 2005