


EmptyWrapper. An 'emptywrapper' is used for uminus and uplus operators
(these operators only expect one object). Therefore the other object is
replaced by an empty one. Emptywrapper is called in Subtraction and
Addition when only one object is expected (eg: not 5+9 (two objects)
but just -14 (only one object))
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 %EmptyWrapper. An 'emptywrapper' is used for uminus and uplus operators 0002 % (these operators only expect one object). Therefore the other object is 0003 % replaced by an empty one. Emptywrapper is called in Subtraction and 0004 % Addition when only one object is expected (eg: not 5+9 (two objects) 0005 % but just -14 (only one object)) 0006 % 0007 % Licence: 0008 % This file is part of ACADO Toolkit - (http://www.acadotoolkit.org/) 0009 % 0010 % ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization. 0011 % Copyright (C) 2008-2009 by Boris Houska and Hans Joachim Ferreau, K.U.Leuven. 0012 % Developed within the Optimization in Engineering Center (OPTEC) under 0013 % supervision of Moritz Diehl. All rights reserved. 0014 % 0015 % ACADO Toolkit is free software; you can redistribute it and/or 0016 % modify it under the terms of the GNU Lesser General Public 0017 % License as published by the Free Software Foundation; either 0018 % version 3 of the License, or (at your option) any later version. 0019 % 0020 % ACADO Toolkit 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 GNU 0023 % Lesser General Public License for more details. 0024 % 0025 % You should have received a copy of the GNU Lesser General Public 0026 % License along with ACADO Toolkit; if not, write to the Free Software 0027 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 0028 % 0029 % Author: David Ariens 0030 % Date: 2009 0031 % 0032 classdef EmptyWrapper < acado.Expression 0033 properties(SetAccess='private') 0034 0035 end 0036 0037 methods 0038 function obj = EmptyWrapper() 0039 0040 end 0041 0042 function s = toString(obj) 0043 s = ''; 0044 end 0045 end 0046 0047 end 0048