qpOASES_octave_utils.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-2015 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 /* Work-around for settings where mexErrMsgTxt causes unexpected behaviour. */
39 #ifdef __AVOID_MEXERRMSGTXT__
40  #define myMexErrMsgTxt( TEXT ) mexPrintf( "%s\n\n",(TEXT) );
41 #else
42  #define myMexErrMsgTxt mexErrMsgTxt
43 #endif
44 
45 
46 #include "mex.h"
47 /* #include "matrix.h" */
48 #include "string.h"
49 #include <vector>
50 
51 
52 /*
53  * QProblem instance class
54  */
55 class QPInstance
56 {
57  private:
58  static int_t s_nexthandle;
59 
60  public:
61  QPInstance( uint_t _nV = 0,
62  uint_t _nC = 0,
63  HessianType _hessianType = HST_UNKNOWN,
64  BooleanType _isSimplyBounded = BT_FALSE
65  );
66 
67  ~QPInstance( );
68 
70 
71  int_t getNV() const;
72  int_t getNC() const;
73 
74  int_t handle;
75 
76  SQProblem* sqp;
77  QProblemB* qpb;
79 
81  Matrix* A;
82  sparse_int_t* Hir;
83  sparse_int_t* Hjc;
84  sparse_int_t* Air;
86  real_t* Hv;
87  real_t* Av;
88 };
89 
90 
91 /*
92  * end of file
93  */
Implements the online active set strategy for box-constrained QPs.
BooleanType isSimplyBounded
Implements the online active set strategy for QPs with varying matrices.
Allows to pass back messages to the calling function.
QPInstance(uint_t _nV=0, uint_t _nC=0, HessianType _hessianType=HST_UNKNOWN, BooleanType _isSimplyBounded=BT_FALSE)
sparse_int_t * Air
sparse_int_t * Hjc
Abstract base class for interfacing tailored matrix-vector operations.
#define HST_UNKNOWN
SymmetricMatrix * H
static int_t s_nexthandle
#define BT_FALSE
Definition: acado_types.hpp:49
double real_t
Definition: AD_test.c:10
sparse_int_t * Hir
sparse_int_t * Ajc
Abstract base class for interfacing matrix-vector operations tailored to symmetric matrices...


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