


End the current ACADO problem.
This function can only be called when a problem is active (and thus
BEGIN_ACADO is called before). Upon calling this function the current
problem will be transfered to a C++ file and will be compiled.
Example:
>> END_ACADO
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-2010

0001 %End the current ACADO problem. 0002 % This function can only be called when a problem is active (and thus 0003 % BEGIN_ACADO is called before). Upon calling this function the current 0004 % problem will be transfered to a C++ file and will be compiled. 0005 % 0006 % Example: 0007 % >> END_ACADO 0008 % 0009 % Licence: 0010 % This file is part of ACADO Toolkit - (http://www.acadotoolkit.org/) 0011 % 0012 % ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization. 0013 % Copyright (C) 2008-2009 by Boris Houska and Hans Joachim Ferreau, K.U.Leuven. 0014 % Developed within the Optimization in Engineering Center (OPTEC) under 0015 % supervision of Moritz Diehl. All rights reserved. 0016 % 0017 % ACADO Toolkit is free software; you can redistribute it and/or 0018 % modify it under the terms of the GNU Lesser General Public 0019 % License as published by the Free Software Foundation; either 0020 % version 3 of the License, or (at your option) any later version. 0021 % 0022 % ACADO Toolkit 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 GNU 0025 % Lesser General Public License for more details. 0026 % 0027 % You should have received a copy of the GNU Lesser General Public 0028 % License along with ACADO Toolkit; if not, write to the Free Software 0029 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 0030 % 0031 % Author: David Ariens 0032 % Date: 2009-2010 0033 % 0034 0035 % Check if there is an active model to build 0036 checkActiveModel; 0037 0038 % Build cpp files + compile them to a problemname_RUN.m/.cpp file 0039 global ACADO_; 0040 ACADO_.helper.generateCPP(); 0041 0042 warning off all 0043 0044 % Remove the ACADO package from the path 0045 rmpath(genpath([ACADO_.pwd filesep 'acado'])); 0046 addpath([ACADO_.pwd filesep 'acado']); 0047 addpath([ACADO_.pwd filesep 'acado/functions']); 0048 addpath( genpath([ACADO_.pwd filesep 'acado' filesep 'packages']) ); 0049 0050 % Clear global 0051 ACADO_ = {}; 0052 clear ACADO_; 0053 0054 warning on all