register_nlp_solvers.cpp
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 
00032 #include <acado/code_generation/register_nlp_solvers.hpp>
00033 
00034 #include <acado/code_generation/export_gauss_newton_cn2.hpp>
00035 #include <acado/code_generation/export_exact_hessian_cn2.hpp>
00036 #include <acado/code_generation/export_exact_hessian_qpdunes.hpp>
00037 #include <acado/code_generation/export_gauss_newton_cn2_factorization.hpp>
00038 #include <acado/code_generation/export_gauss_newton_condensed.hpp>
00039 #include <acado/code_generation/export_gauss_newton_forces.hpp>
00040 #include <acado/code_generation/export_gauss_newton_qpdunes.hpp>
00041 #include <acado/code_generation/export_gauss_newton_qpdunes2.hpp>
00042 #include <acado/code_generation/export_gauss_newton_hpmpc.hpp>
00043 
00044 BEGIN_NAMESPACE_ACADO
00045 
00046 //
00047 // Solver registration
00048 //
00049 
00050 ExportNLPSolver* createGaussNewtonCN2(  UserInteraction* _userInteraction,
00051                                                                                 const std::string& _commonHeaderName
00052                                                                                 )
00053 {
00054         return new ExportGaussNewtonCN2(_userInteraction, _commonHeaderName);
00055 }
00056 
00057 ExportNLPSolver* createExactHessianCN2( UserInteraction* _userInteraction,
00058                                                                                         const std::string& _commonHeaderName
00059                                                                                         )
00060 {
00061         return new ExportExactHessianCN2(_userInteraction, _commonHeaderName);
00062 }
00063 
00064 ExportNLPSolver* createExactHessianQpDunes(     UserInteraction* _userInteraction,
00065                                                                                         const std::string& _commonHeaderName
00066                                                                                         )
00067 {
00068         return new ExportExactHessianQpDunes(_userInteraction, _commonHeaderName);
00069 }
00070 
00071 ExportNLPSolver* createGaussNewtonCn2Factorization(     UserInteraction* _userInteraction,
00072                                                                                                         const std::string& _commonHeaderName
00073                                                                                                         )
00074 {
00075         return new ExportGaussNewtonCn2Factorization(_userInteraction, _commonHeaderName);
00076 }
00077 
00078 ExportNLPSolver* createGaussNewtonCondensed(    UserInteraction* _userInteraction,
00079                                                                                                 const std::string& _commonHeaderName
00080                                                                                                 )
00081 {
00082         return new ExportGaussNewtonCondensed(_userInteraction, _commonHeaderName);
00083 }
00084 
00085 ExportNLPSolver* createGaussNewtonForces(       UserInteraction* _userInteraction,
00086                                                                                         const std::string& _commonHeaderName
00087                                                                                         )
00088 {
00089         return new ExportGaussNewtonForces(_userInteraction, _commonHeaderName);
00090 }
00091 
00092 ExportNLPSolver* createGaussNewtonQpDunes(      UserInteraction* _userInteraction,
00093                                                                                         const std::string& _commonHeaderName
00094                                                                                         )
00095 {
00096         return new ExportGaussNewtonQpDunes(_userInteraction, _commonHeaderName);
00097 }
00098 
00099 ExportNLPSolver* createGaussNewtonQpDunes2(     UserInteraction* _userInteraction,
00100                                                                                         const std::string& _commonHeaderName
00101                                                                                         )
00102 {
00103         return new ExportGaussNewtonQpDunes2(_userInteraction, _commonHeaderName);
00104 }
00105 
00106 ExportNLPSolver* createGaussNewtonHpmpc(        UserInteraction* _userInteraction,
00107                                                                                         const std::string& _commonHeaderName
00108                                                                                 )
00109 {
00110         return new ExportGaussNewtonHpmpc(_userInteraction, _commonHeaderName);
00111 }
00112 
00113 RegisterNlpSolvers::RegisterNlpSolvers()
00114 {
00115         NLPSolverFactory::instance().registerAlgorithm(GAUSS_NEWTON_CN2, createGaussNewtonCN2);
00116         NLPSolverFactory::instance().registerAlgorithm(EXACT_HESSIAN_CN2, createExactHessianCN2);
00117         NLPSolverFactory::instance().registerAlgorithm(EXACT_HESSIAN_QPDUNES, createExactHessianQpDunes);
00118         NLPSolverFactory::instance().registerAlgorithm(GAUSS_NEWTON_CN2_FACTORIZATION, createGaussNewtonCn2Factorization);
00119         NLPSolverFactory::instance().registerAlgorithm(GAUSS_NEWTON_CONDENSED, createGaussNewtonCondensed);
00120         NLPSolverFactory::instance().registerAlgorithm(GAUSS_NEWTON_FORCES, createGaussNewtonForces);
00121         NLPSolverFactory::instance().registerAlgorithm(GAUSS_NEWTON_QPDUNES, createGaussNewtonQpDunes);
00122         NLPSolverFactory::instance().registerAlgorithm(GAUSS_NEWTON_QPDUNES2, createGaussNewtonQpDunes2);
00123         NLPSolverFactory::instance().registerAlgorithm(GAUSS_NEWTON_HPMPC, createGaussNewtonHpmpc);
00124 }
00125 
00126 CLOSE_NAMESPACE_ACADO


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Thu Aug 27 2015 11:59:54