Start a new empty ACADO problem Example: >> BEGIN_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
0001 %Start a new empty ACADO problem 0002 % 0003 % Example: 0004 % >> BEGIN_ACADO 0005 % 0006 % Licence: 0007 % This file is part of ACADO Toolkit - (http://www.acadotoolkit.org/) 0008 % 0009 % ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization. 0010 % Copyright (C) 2008-2009 by Boris Houska and Hans Joachim Ferreau, K.U.Leuven. 0011 % Developed within the Optimization in Engineering Center (OPTEC) under 0012 % supervision of Moritz Diehl. All rights reserved. 0013 % 0014 % ACADO Toolkit is free software; you can redistribute it and/or 0015 % modify it under the terms of the GNU Lesser General Public 0016 % License as published by the Free Software Foundation; either 0017 % version 3 of the License, or (at your option) any later version. 0018 % 0019 % ACADO Toolkit is distributed in the hope that it will be useful, 0020 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0021 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0022 % Lesser General Public License for more details. 0023 % 0024 % You should have received a copy of the GNU Lesser General Public 0025 % License along with ACADO Toolkit; if not, write to the Free Software 0026 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 0027 % 0028 % Author: David Ariens 0029 % Date: 2009 0030 % 0031 0032 % Check if acadoglobals function can be called. 0033 if ~exist('acadoglobals','file'), 0034 error( 'ERROR: Run make script first. Go to <ACADOtoolkit-inst-dir>/interfaces/matlab/ and run <a href="matlab: help make">help make</a>' ); 0035 end 0036 0037 % Set globals 0038 acadoglobals; 0039 if ~exist(ACADO_.pwd) 0040 error( 'ERROR: Run make script first. Go to <ACADOtoolkit-inst-dir>/interfaces/matlab/ and run <a href="matlab: help make">help make</a>' ); 0041 end 0042 0043 0044 % Add OCP folder to path 0045 addpath( genpath([ACADO_.pwd filesep 'acado']) ); 0046 0047 % A model is now active 0048 ACADO_.modelactive = 1; 0049 0050 % Set current problemname 0051 ACADO_.problemname = 'myAcadoProblem'; 0052 0053 % Write results to file? 0054 ACADO_.results_to_file = false; 0055 0056 % Helper 0057 ACADO_.helper = acado.AcadoMatlab(); 0058 0059 % Set counts (used to auto name variables) 0060 ACADO_.count_ocp = 0; 0061 ACADO_.count_optalgo = 0; 0062 ACADO_.count_function = 0; 0063 ACADO_.count_matrix = 0; 0064 ACADO_.count_vector = 0; 0065 ACADO_.count_sim = 0; 0066 ACADO_.count_other = 0; 0067 ACADO_.count_mexin = 0; 0068 ACADO_.count_double = 0;