qpOASES-3.0beta/include/qpOASES/SQProblem.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of qpOASES.
3  *
4  * qpOASES -- An Implementation of the Online Active Set Strategy.
5  * Copyright (C) 2007-2011 by Hans Joachim Ferreau, Andreas Potschka,
6  * Christian Kirches et al. All rights reserved.
7  *
8  * qpOASES is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * qpOASES is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with qpOASES; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  */
23 
24 
38 #ifndef QPOASES_SQPROBLEM_HPP
39 #define QPOASES_SQPROBLEM_HPP
40 
41 
42 #include <qpOASES/QProblem.hpp>
43 
44 
46 
47 
59 class SQProblem : public QProblem
60 {
61  /* allow SolutionAnalysis class to access private members */
62  friend class SolutionAnalysis;
63 
64  /*
65  * PUBLIC MEMBER FUNCTIONS
66  */
67  public:
69  SQProblem( );
70 
76  SQProblem( int _nV,
77  int _nC,
78  HessianType _hessianType = HST_UNKNOWN
79  );
80 
82  SQProblem( const SQProblem& rhs
83  );
84 
86  virtual ~SQProblem( );
87 
90  );
91 
92 
106  returnValue hotstart( const real_t* const H_new,
108  const real_t* const g_new,
109  const real_t* const A_new,
111  const real_t* const lb_new,
113  const real_t* const ub_new,
115  const real_t* const lbA_new,
117  const real_t* const ubA_new,
119  int& nWSR,
121  real_t* const cputime
123  );
124 
141  returnValue hotstart( const char* const H_file,
143  const char* const g_file,
144  const char* const A_file,
146  const char* const lb_file,
148  const char* const ub_file,
150  const char* const lbA_file,
152  const char* const ubA_file,
154  int& nWSR,
156  real_t* const cputime
158  );
159 
175  const real_t* const g_new,
176  Matrix *A_new,
178  const real_t* const lb_new,
180  const real_t* const ub_new,
182  const real_t* const lbA_new,
184  const real_t* const ubA_new,
186  int& nWSR,
188  real_t* const cputime
190  );
191 
205  returnValue hotstart( const real_t* const g_new,
206  const real_t* const lb_new,
208  const real_t* const ub_new,
210  const real_t* const lbA_new,
212  const real_t* const ubA_new,
214  int& nWSR,
216  real_t* const cputime
218  );
219 
235  returnValue hotstart( const char* const g_file,
236  const char* const lb_file,
238  const char* const ub_file,
240  const char* const lbA_file,
242  const char* const ubA_file,
244  int& nWSR,
246  real_t* const cputime
248  );
249 
265  returnValue hotstart( const real_t* const g_new,
266  const real_t* const lb_new,
268  const real_t* const ub_new,
270  const real_t* const lbA_new,
272  const real_t* const ubA_new,
274  int& nWSR,
276  real_t* const cputime,
278  const Bounds* const guessedBounds,
280  const Constraints* const guessedConstraints
282  );
283 
300  returnValue hotstart( const char* const g_file,
301  const char* const lb_file,
303  const char* const ub_file,
305  const char* const lbA_file,
307  const char* const ubA_file,
309  int& nWSR,
311  real_t* const cputime,
313  const Bounds* const guessedBounds,
315  const Constraints* const guessedConstraints
317  );
318 
319 
320 
321  #ifdef __MATLAB__
322 
325  returnValue resetMatrixPointers( );
326  #endif
327 
328 
329  /*
330  * PROTECTED MEMBER FUNCTIONS
331  */
332  protected:
341  virtual returnValue setupAuxiliaryQP( const real_t* const H_new,
343  const real_t* const A_new
345  );
346 
357  Matrix *A_new
359  );
360 
361  /*
362  * PROTECTED MEMBER VARIABLES
363  */
364  protected:
365 
366 };
367 
368 
370 
371 #include <qpOASES/SQProblem.ipp>
372 
373 #endif /* QPOASES_SQPROBLEM_HPP */
374 
375 
376 /*
377  * end of file
378  */
Implements the online active set strategy for QPs with varying matrices.
Allows to pass back messages to the calling function.
SQProblem & operator=(const SQProblem &rhs)
virtual returnValue setupAuxiliaryQP(const real_t *const H_new, const real_t *const A_new)
Abstract base class for interfacing tailored matrix-vector operations.
void rhs(const real_t *x, real_t *f)
#define HST_UNKNOWN
Manages working sets of bounds (= box constraints).
double real_t
Definition: AD_test.c:10
Implements the online active set strategy for QPs with general constraints.
Abstract base class for interfacing matrix-vector operations tailored to symmetric matrices...
returnValue hotstart(const real_t *const H_new, const real_t *const g_new, const real_t *const A_new, const real_t *const lb_new, const real_t *const ub_new, const real_t *const lbA_new, const real_t *const ubA_new, int &nWSR, real_t *const cputime)


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