Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
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
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