Home > matpower4.0 > fmincopf.m

fmincopf

PURPOSE ^

FMINCOPF Solves an AC optimal power flow using FMINCON (Opt Tbx 2.x & later).

SYNOPSIS ^

function [varargout] = fmincopf(varargin)

DESCRIPTION ^

FMINCOPF  Solves an AC optimal power flow using FMINCON (Opt Tbx 2.x & later).

   Uses algorithm 520. Please see OPF for the details of input and
   output arguments.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [varargout] = fmincopf(varargin)
0002 %FMINCOPF  Solves an AC optimal power flow using FMINCON (Opt Tbx 2.x & later).
0003 %
0004 %   Uses algorithm 520. Please see OPF for the details of input and
0005 %   output arguments.
0006 
0007 %   MATPOWER
0008 %   $Id: fmincopf.m,v 1.38 2010/04/26 19:45:25 ray Exp $
0009 %   by Ray Zimmerman, PSERC Cornell
0010 %   Copyright (c) 2000-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, mpopt] = opf_args(varargin{:});
0037 mpopt = mpoption(mpopt, 'PF_DC', 0, 'OPF_ALG', 520);
0038 [varargout{1:nargout}] = opf(mpc, mpopt);

Generated on Mon 26-Jan-2015 14:56:45 by m2html © 2005