0001 function getCPPheader(obj)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030 fprintf(obj.fileMEX,'/*\n');
0031 fprintf(obj.fileMEX,'* This file is part of ACADO Toolkit.\n');
0032 fprintf(obj.fileMEX,'*\n');
0033 fprintf(obj.fileMEX,'* ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.\n');
0034 fprintf(obj.fileMEX,'* Copyright (C) 2008-2009 by Boris Houska and Hans Joachim Ferreau, K.U.Leuven.\n');
0035 fprintf(obj.fileMEX,'* Developed within the Optimization in Engineering Center (OPTEC) under\n');
0036 fprintf(obj.fileMEX,'* supervision of Moritz Diehl. All rights reserved.\n');
0037 fprintf(obj.fileMEX,'*\n');
0038 fprintf(obj.fileMEX,'* ACADO Toolkit is free software; you can redistribute it and/or\n');
0039 fprintf(obj.fileMEX,'* modify it under the terms of the GNU Lesser General Public\n');
0040 fprintf(obj.fileMEX,'* License as published by the Free Software Foundation; either\n');
0041 fprintf(obj.fileMEX,'* version 3 of the License, or (at your option) any later version.\n');
0042 fprintf(obj.fileMEX,'*\n');
0043 fprintf(obj.fileMEX,'* ACADO Toolkit is distributed in the hope that it will be useful,\n');
0044 fprintf(obj.fileMEX,'* but WITHOUT ANY WARRANTY; without even the implied warranty of\n');
0045 fprintf(obj.fileMEX,'* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n');
0046 fprintf(obj.fileMEX,'* Lesser General Public License for more details.\n');
0047 fprintf(obj.fileMEX,'*\n');
0048 fprintf(obj.fileMEX,'* You should have received a copy of the GNU Lesser General Public\n');
0049 fprintf(obj.fileMEX,'* License along with ACADO Toolkit; if not, write to the Free Software\n');
0050 fprintf(obj.fileMEX,'* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n');
0051 fprintf(obj.fileMEX,'*\n');
0052 fprintf(obj.fileMEX,'*/\n');
0053 fprintf(obj.fileMEX,'\n');
0054 fprintf(obj.fileMEX,'\n');
0055 fprintf(obj.fileMEX,'/**\n');
0056 fprintf(obj.fileMEX,'* Author David Ariens\n');
0057 fprintf(obj.fileMEX,'* Date 2009-2010\n');
0058 fprintf(obj.fileMEX,'* http://www.acadotoolkit.org/matlab \n');
0059 fprintf(obj.fileMEX,'*/\n');
0060 fprintf(obj.fileMEX,'\n');
0061 fprintf(obj.fileMEX,'#include <acado_optimal_control.hpp>\n');
0062 fprintf(obj.fileMEX,'#include <acado_toolkit.hpp>\n');
0063 fprintf(obj.fileMEX,'#include <acado/utils/matlab_acado_utils.hpp>\n');
0064 fprintf(obj.fileMEX,'\n');
0065 fprintf(obj.fileMEX,'USING_NAMESPACE_ACADO\n');
0066 fprintf(obj.fileMEX,'\n');
0067
0068 end