scp_merit_function.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of ACADO Toolkit.
3  *
4  * ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
5  * Copyright (C) 2008-2014 by Boris Houska, Hans Joachim Ferreau,
6  * Milan Vukov, Rien Quirynen, KU Leuven.
7  * Developed within the Optimization in Engineering Center (OPTEC)
8  * under supervision of Moritz Diehl. All rights reserved.
9  *
10  * ACADO Toolkit is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 3 of the License, or (at your option) any later version.
14  *
15  * ACADO Toolkit is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with ACADO Toolkit; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  *
24  */
25 
26 
34 #ifndef ACADO_TOOLKIT_SCP_MERIT_FUNCTION_HPP
35 #define ACADO_TOOLKIT_SCP_MERIT_FUNCTION_HPP
36 
37 
40 
44 
46 
47 
48 
49 
51 
52 
64 {
65 
66  //
67  // PUBLIC MEMBER FUNCTIONS:
68  //
69  public:
70 
73 
74  SCPmeritFunction( UserInteraction* _userInteraction
75  );
76 
79 
81  virtual ~SCPmeritFunction( );
82 
85 
86  virtual SCPmeritFunction* clone( ) const;
87 
88 
95  virtual returnValue evaluate( double alpha,
96  const OCPiterate& iter,
97  BandedCP& cp,
98  SCPevaluation& eval,
99  double& result
100  );
101 
102 
103  //virtual updateWeights( ) = 0;
104 
105 
106  //
107  // PROTECTED MEMBER FUNCTIONS:
108  //
109  protected:
110 
111 
112 
113  //
114  // DATA MEMBERS:
115  //
116  protected:
117 
118  //double functionWeight;
119  //double dynamicWeight;
120  //double equalityWeight;
121  //double boundWeight;
122  //double constraintWeight;
123 
124 
125 };
126 
127 
129 
130 
131 #endif // ACADO_TOOLKIT_SCP_MERIT_FUNCTION_HPP
132 
133 /*
134  * end of file
135  */
Data class for storing generic optimization variables.
Definition: ocp_iterate.hpp:57
Allows to pass back messages to the calling function.
virtual returnValue evaluate(double alpha, const OCPiterate &iter, BandedCP &cp, SCPevaluation &eval, double &result)
Base class for all algorithmic modules within the ACADO Toolkit providing some basic functionality...
#define CLOSE_NAMESPACE_ACADO
Allows to evaluate a merit function within an SCPmethod for solving NLPs.
Encapsulates all user interaction for setting options, logging data and plotting results.
void rhs(const real_t *x, real_t *f)
virtual SCPmeritFunction * clone() const
Base class for different ways to evaluate functions and derivatives within an SCPmethod for solving N...
#define BEGIN_NAMESPACE_ACADO
SCPmeritFunction & operator=(const SCPmeritFunction &rhs)
Data class for storing conic programs arising from optimal control.
Definition: banded_cp.hpp:56


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:35:04