------------------------------ deprecated ------------------------------ Use GETN(OM, 'lin' ... ) instead. -------------------------------------------------------------------------- GET_LIN_N Returns the number of linear constraints. N = GET_LIN_N(OM) : total number of linear constraints N = GET_LIN_N(OM, NAME) : number of linear constraints in named set
0001 function N = get_lin_N(om, varargin) 0002 %------------------------------ deprecated ------------------------------ 0003 % Use GETN(OM, 'lin' ... ) instead. 0004 %-------------------------------------------------------------------------- 0005 %GET_LIN_N Returns the number of linear constraints. 0006 % N = GET_LIN_N(OM) : total number of linear constraints 0007 % N = GET_LIN_N(OM, NAME) : number of linear constraints in named set 0008 0009 % MATPOWER 0010 % $Id: get_lin_N.m,v 1.8 2010/04/26 19:45:25 ray Exp $ 0011 % by Ray Zimmerman, PSERC Cornell 0012 % Copyright (c) 2008-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 N = getN(om, 'lin', varargin{:});