Home > matlab > acado > functions > checkActiveModel.m

checkActiveModel

PURPOSE ^

Check if model is active

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

Check if model is active

  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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %Check if model is active
0002 %
0003 %  Licence:
0004 %    This file is part of ACADO Toolkit  - (http://www.acadotoolkit.org/)
0005 %
0006 %    ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
0007 %    Copyright (C) 2008-2009 by Boris Houska and Hans Joachim Ferreau, K.U.Leuven.
0008 %    Developed within the Optimization in Engineering Center (OPTEC) under
0009 %    supervision of Moritz Diehl. All rights reserved.
0010 %
0011 %    ACADO Toolkit is free software; you can redistribute it and/or
0012 %    modify it under the terms of the GNU Lesser General Public
0013 %    License as published by the Free Software Foundation; either
0014 %    version 3 of the License, or (at your option) any later version.
0015 %
0016 %    ACADO Toolkit is distributed in the hope that it will be useful,
0017 %    but WITHOUT ANY WARRANTY; without even the implied warranty of
0018 %    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0019 %    Lesser General Public License for more details.
0020 %
0021 %    You should have received a copy of the GNU Lesser General Public
0022 %    License along with ACADO Toolkit; if not, write to the Free Software
0023 %    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
0024 %
0025 %    Author: David Ariens
0026 %    Date: 2009
0027 %
0028 global ACADO_;
0029 
0030 try
0031     if ACADO_.modelactive ~= 1,
0032         error( ' ' );
0033     end
0034 catch
0035     error( 'No active model is running. Start with BEGIN_ACADO first.' );
0036 end

www.acadotoolkit.org/matlab
Generated on Tue 01-Jun-2010 20:14:12 by m2html © 2005