scp_merit_function.hpp
Go to the documentation of this file.
00001 /*
00002  *    This file is part of ACADO Toolkit.
00003  *
00004  *    ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
00005  *    Copyright (C) 2008-2014 by Boris Houska, Hans Joachim Ferreau,
00006  *    Milan Vukov, Rien Quirynen, KU Leuven.
00007  *    Developed within the Optimization in Engineering Center (OPTEC)
00008  *    under supervision of Moritz Diehl. All rights reserved.
00009  *
00010  *    ACADO Toolkit is free software; you can redistribute it and/or
00011  *    modify it under the terms of the GNU Lesser General Public
00012  *    License as published by the Free Software Foundation; either
00013  *    version 3 of the License, or (at your option) any later version.
00014  *
00015  *    ACADO Toolkit is distributed in the hope that it will be useful,
00016  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  *    Lesser General Public License for more details.
00019  *
00020  *    You should have received a copy of the GNU Lesser General Public
00021  *    License along with ACADO Toolkit; if not, write to the Free Software
00022  *    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00023  *
00024  */
00025 
00026 
00034 #ifndef ACADO_TOOLKIT_SCP_MERIT_FUNCTION_HPP
00035 #define ACADO_TOOLKIT_SCP_MERIT_FUNCTION_HPP
00036 
00037 
00038 #include <acado/utils/acado_utils.hpp>
00039 #include <acado/user_interaction/algorithmic_base.hpp>
00040 
00041 #include <acado/function/ocp_iterate.hpp>
00042 #include <acado/conic_program/banded_cp.hpp>
00043 #include <acado/conic_solver/banded_cp_solver.hpp>
00044 
00045 #include <acado/nlp_solver/scp_evaluation.hpp>
00046 
00047 
00048 
00049 
00050 BEGIN_NAMESPACE_ACADO
00051 
00052 
00063 class SCPmeritFunction : public AlgorithmicBase
00064 {
00065 
00066     //
00067     // PUBLIC MEMBER FUNCTIONS:
00068     //
00069     public:
00070 
00072         SCPmeritFunction( );
00073 
00074                 SCPmeritFunction(       UserInteraction* _userInteraction
00075                                                         );
00076 
00078         SCPmeritFunction( const SCPmeritFunction& rhs );
00079 
00081         virtual ~SCPmeritFunction( );
00082 
00084         SCPmeritFunction& operator=( const SCPmeritFunction& rhs );
00085 
00086         virtual SCPmeritFunction* clone( ) const;
00087 
00088 
00095         virtual returnValue evaluate(   double alpha,
00096                                                                         const OCPiterate& iter,
00097                                                                         BandedCP& cp,
00098                                                                                 SCPevaluation& eval,
00099                                                                                 double& result
00100                                                                         );
00101 
00102 
00103                 //virtual updateWeights( ) = 0;
00104 
00105 
00106     //
00107     // PROTECTED MEMBER FUNCTIONS:
00108     //
00109     protected:
00110 
00111 
00112 
00113     //
00114     // DATA MEMBERS:
00115     //
00116     protected:
00117 
00118         //double functionWeight;
00119         //double dynamicWeight;
00120         //double equalityWeight;
00121         //double boundWeight;
00122         //double constraintWeight;
00123 
00124 
00125 };
00126 
00127 
00128 CLOSE_NAMESPACE_ACADO
00129 
00130 
00131 #endif  // ACADO_TOOLKIT_SCP_MERIT_FUNCTION_HPP
00132 
00133 /*
00134  *  end of file
00135  */


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Sat Jun 8 2019 19:38:51