Less Than or Equal to for 2 expressions Usage: >> LessThanEqual(obj1, obj2); >> obj1 <= obj2; Parameters: obj1 [Expression] obj2 [Expression] Licence: This file is part of ACADO Toolkit - (http://www.acadotoolkit.org/) ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization. Copyright (C) 2008-2009 by Boris Houska and Hans Joachim Ferreau, K.U.Leuven. Developed within the Optimization in Engineering Center (OPTEC) under supervision of Moritz Diehl. All rights reserved. ACADO Toolkit is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. ACADO Toolkit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with ACADO Toolkit; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Author: David Ariens Date: 2009
0001 %Less Than or Equal to for 2 expressions 0002 % 0003 % Usage: 0004 % >> LessThanEqual(obj1, obj2); 0005 % >> obj1 <= obj2; 0006 % 0007 % Parameters: 0008 % obj1 [Expression] 0009 % obj2 [Expression] 0010 % 0011 % Licence: 0012 % This file is part of ACADO Toolkit - (http://www.acadotoolkit.org/) 0013 % 0014 % ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization. 0015 % Copyright (C) 2008-2009 by Boris Houska and Hans Joachim Ferreau, K.U.Leuven. 0016 % Developed within the Optimization in Engineering Center (OPTEC) under 0017 % supervision of Moritz Diehl. All rights reserved. 0018 % 0019 % ACADO Toolkit is free software; you can redistribute it and/or 0020 % modify it under the terms of the GNU Lesser General Public 0021 % License as published by the Free Software Foundation; either 0022 % version 3 of the License, or (at your option) any later version. 0023 % 0024 % ACADO Toolkit is distributed in the hope that it will be useful, 0025 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0026 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0027 % Lesser General Public License for more details. 0028 % 0029 % You should have received a copy of the GNU Lesser General Public 0030 % License along with ACADO Toolkit; if not, write to the Free Software 0031 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 0032 % 0033 % Author: David Ariens 0034 % Date: 2009 0035 % 0036 classdef LessThanEqual < acado.BooleanVariable 0037 properties(SetAccess='private') 0038 0039 end 0040 0041 methods 0042 function obj = LessThanEqual(obj1, obj2) 0043 obj.obj1 = obj.checkDoubleVectorMatrix(obj1); 0044 obj.obj2 = obj.checkDoubleVectorMatrix(obj2); 0045 end 0046 0047 function s = toString(obj) 0048 s = sprintf('%s <= %s', obj.obj1.toString, obj.obj2.toString); 0049 end 0050 end 0051 0052 end 0053