Home > matpower4.0 > isload.m

isload

PURPOSE ^

ISLOAD Checks for dispatchable loads.

SYNOPSIS ^

function TorF = isload(gen)

DESCRIPTION ^

ISLOAD  Checks for dispatchable loads.
   TORF = ISLOAD(GEN) returns a column vector of 1's and 0's. The 1's
   correspond to rows of the GEN matrix which represent dispatchable loads.
   The current test is Pmin < 0 AND Pmax == 0.
   This may need to be revised to allow sensible specification
   of both elastic demand and pumped storage units.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function TorF = isload(gen)
0002 %ISLOAD  Checks for dispatchable loads.
0003 %   TORF = ISLOAD(GEN) returns a column vector of 1's and 0's. The 1's
0004 %   correspond to rows of the GEN matrix which represent dispatchable loads.
0005 %   The current test is Pmin < 0 AND Pmax == 0.
0006 %   This may need to be revised to allow sensible specification
0007 %   of both elastic demand and pumped storage units.
0008 
0009 %   MATPOWER
0010 %   $Id: isload.m,v 1.8 2010/04/26 19:45:25 ray Exp $
0011 %   by Ray Zimmerman, PSERC Cornell
0012 %   Copyright (c) 2005-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 [GEN_BUS, PG, QG, QMAX, QMIN, VG, MBASE, GEN_STATUS, PMAX, PMIN, ...
0039     MU_PMAX, MU_PMIN, MU_QMAX, MU_QMIN, PC1, PC2, QC1MIN, QC1MAX, ...
0040     QC2MIN, QC2MAX, RAMP_AGC, RAMP_10, RAMP_30, RAMP_Q, APF] = idx_gen;
0041 
0042 TorF = gen(:, PMIN) < 0 & gen(:, PMAX) == 0;

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