


OptimizationAlgorithmBase (matlab interface helper)
Base class for user-interfaces to formulate and solve optimal control
problems and static NLPs.
Usage:
Should not be used.
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: 2010


0001 %OptimizationAlgorithmBase (matlab interface helper) 0002 % Base class for user-interfaces to formulate and solve optimal control 0003 % problems and static NLPs. 0004 % 0005 % Usage: 0006 % Should not be used. 0007 % 0008 % Licence: 0009 % This file is part of ACADO Toolkit - (http://www.acadotoolkit.org/) 0010 % 0011 % ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization. 0012 % Copyright (C) 2008-2009 by Boris Houska and Hans Joachim Ferreau, K.U.Leuven. 0013 % Developed within the Optimization in Engineering Center (OPTEC) under 0014 % supervision of Moritz Diehl. All rights reserved. 0015 % 0016 % ACADO Toolkit is free software; you can redistribute it and/or 0017 % modify it under the terms of the GNU Lesser General Public 0018 % License as published by the Free Software Foundation; either 0019 % version 3 of the License, or (at your option) any later version. 0020 % 0021 % ACADO Toolkit is distributed in the hope that it will be useful, 0022 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0023 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0024 % Lesser General Public License for more details. 0025 % 0026 % You should have received a copy of the GNU Lesser General Public 0027 % License along with ACADO Toolkit; if not, write to the Free Software 0028 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 0029 % 0030 % Author: David Ariens 0031 % Date: 2010 0032 % 0033 classdef OptimizationAlgorithmBase < handle 0034 properties(SetAccess='protected') 0035 0036 name = 'algo' 0037 0038 %constructor 0039 ocp; 0040 0041 %set 0042 set_n = {}; 0043 set_v = {}; 0044 0045 %initialize 0046 initdiffstates; 0047 initcontrols; 0048 initparameters; 0049 initdisturbances; 0050 initalgstates; 0051 end 0052 0053 methods 0054 function obj = OptimizationAlgorithmBase(varargin) 0055 0056 checkActiveModel; 0057 0058 end 0059 0060 set(obj, name, value) 0061 initializeDifferentialStates(obj, varargin) 0062 initializeControls(obj, varargin) 0063 initializeParameters(obj, varargin) 0064 initializeDisturbances(obj, varargin) 0065 initializeAlgebraicStates(obj, varargin) 0066 getSetInitInstructions(obj, cppobj) 0067 0068 end 0069 0070 end 0071