Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
c
d
e
g
h
i
m
n
p
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Functions
_
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
x
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
p
q
r
s
t
v
w
x
Typedefs
c
d
f
h
m
r
s
t
v
Enumerations
Enumerator
Files
File List
File Members
All
b
c
d
e
g
h
l
m
n
p
q
r
s
t
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
b
c
d
e
p
r
s
t
src
solvers
solver-HQP-base.cpp
Go to the documentation of this file.
1
//
2
// Copyright (c) 2017 CNRS
3
//
4
// This file is part of tsid
5
// tsid is free software: you can redistribute it
6
// and/or modify it under the terms of the GNU Lesser General Public
7
// License as published by the Free Software Foundation, either version
8
// 3 of the License, or (at your option) any later version.
9
// tsid is distributed in the hope that it will be
10
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty
11
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
// General Lesser Public License for more details. You should have
13
// received a copy of the GNU Lesser General Public License along with
14
// tsid If not, see
15
// <http://www.gnu.org/licenses/>.
16
//
17
18
#include "
tsid/solvers/solver-HQP-base.hpp
"
19
20
#include <iostream>
21
22
namespace
tsid
{
23
namespace
solvers {
24
25
std::string
const
SolverHQPBase::HQP_status_string
[] = {
26
"HQP_STATUS_OPTIMAL"
,
"HQP_STATUS_INFEASIBLE"
,
"HQP_STATUS_UNBOUNDED"
,
27
"HQP_STATUS_MAX_ITER_REACHED"
,
"HQP_STATUS_ERROR"
};
28
29
SolverHQPBase::SolverHQPBase
(
const
std::string&
name
) {
30
m_name
=
name
;
31
m_maxIter
= 1000;
32
m_maxTime
= 100.0;
33
m_useWarmStart
=
true
;
34
}
35
36
bool
SolverHQPBase::setMaximumIterations
(
unsigned
int
maxIter) {
37
if
(maxIter == 0)
return
false
;
38
m_maxIter
= maxIter;
39
return
true
;
40
}
41
42
bool
SolverHQPBase::setMaximumTime
(
double
seconds) {
43
if
(seconds <= 0.0)
return
false
;
44
m_maxTime
= seconds;
45
return
true
;
46
}
47
48
}
// namespace solvers
49
}
// namespace tsid
tsid::solvers::SolverHQPBase::name
virtual const std::string & name() const
Definition:
solver-HQP-base.hpp:47
tsid::solvers::SolverHQPBase::m_useWarmStart
bool m_useWarmStart
Definition:
solver-HQP-base.hpp:81
tsid::solvers::SolverHQPBase::m_name
std::string m_name
Definition:
solver-HQP-base.hpp:80
tsid::solvers::SolverHQPBase::SolverHQPBase
SolverHQPBase(const std::string &name)
Definition:
solver-HQP-base.cpp:29
tsid::solvers::SolverHQPBase::HQP_status_string
static EIGEN_MAKE_ALIGNED_OPERATOR_NEW const std::string HQP_status_string[5]
Definition:
solver-HQP-base.hpp:38
tsid::solvers::SolverHQPBase::m_maxIter
unsigned int m_maxIter
Definition:
solver-HQP-base.hpp:82
setup.name
name
Definition:
setup.in.py:179
solver-HQP-base.hpp
tsid::solvers::SolverHQPBase::setMaximumIterations
virtual bool setMaximumIterations(unsigned int maxIter)
Definition:
solver-HQP-base.cpp:36
tsid
Definition:
bindings/python/constraint/constraint-bound.cpp:21
tsid::solvers::SolverHQPBase::m_maxTime
double m_maxTime
Definition:
solver-HQP-base.hpp:83
tsid::solvers::SolverHQPBase::setMaximumTime
virtual bool setMaximumTime(double seconds)
Definition:
solver-HQP-base.cpp:42
tsid
Author(s): Andrea Del Prete, Justin Carpentier
autogenerated on Thu Apr 3 2025 02:47:16