kkt.h
Go to the documentation of this file.
1 /* Copyright 2020 CNRS-AIST JRL */
2 
3 #pragma once
4 #include <jrl-qp/api.h>
5 #include <jrl-qp/defs.h>
6 #include <jrl-qp/test/problems.h>
7 
8 namespace jrl::qp::test
9 {
19  const VectorConstRef & a,
20  const MatrixConstRef & C,
21  const VectorConstRef & bl,
22  const VectorConstRef & bu,
23  const VectorConstRef & xl,
24  const VectorConstRef & xu,
25  bool transposedC = false);
26 
37  const VectorConstRef & u,
38  const MatrixConstRef & G,
39  const VectorConstRef & a,
40  const MatrixConstRef & C,
41  const VectorConstRef & bl,
42  const VectorConstRef & bu,
43  const VectorConstRef & xl,
44  const VectorConstRef & xu,
45  bool transposedC = false);
46 
57  const VectorConstRef & u,
58  const MatrixConstRef & C,
59  const VectorConstRef & bl,
60  const VectorConstRef & bu,
61  const VectorConstRef & xl,
62  const VectorConstRef & xu,
63  bool transposedC = false);
64 
73 bool JRLQP_DLLAPI testKKT(const VectorConstRef & x,
74  const VectorConstRef & u,
75  const MatrixConstRef & G,
76  const VectorConstRef & a,
77  const MatrixConstRef & C,
78  const VectorConstRef & bl,
79  const VectorConstRef & bu,
80  const VectorConstRef & xl,
81  const VectorConstRef & xu,
82  bool transposedC = false,
83  double tau_p = 1e-6,
84  double tau_d = 1e-6);
85 
87 bool JRLQP_DLLAPI testKKT(const VectorConstRef & x,
88  const VectorConstRef & u,
89  const QPProblem<> & pb,
90  double tau_p = 1e-6,
91  double tau_d = 1e-6);
92 
103  const VectorConstRef & u,
104  const MatrixConstRef & G,
105  const VectorConstRef & a,
106  const MatrixConstRef & C,
107  const VectorConstRef & bl,
108  const VectorConstRef & bu,
109  const VectorConstRef & xl,
110  const VectorConstRef & xu,
111  bool transposedC = false,
112  double tau_d = 1e-6);
113 
116  const VectorConstRef & u,
117  const QPProblem<> & pb,
118  double tau_d = 1e-6);
119 
130  const VectorConstRef & u,
131  const MatrixConstRef & C,
132  const VectorConstRef & bl,
133  const VectorConstRef & bu,
134  const VectorConstRef & xl,
135  const VectorConstRef & xu,
136  bool transposedC = false,
137  double tau_p = 1e-6,
138  double tau_d = 1e-6);
139 
142  const VectorConstRef & u,
143  const FeasibilityConstraints & cstr,
144  double tau_p = 1e-6,
145  double tau_d = 1e-6);
146 } // namespace jrl::qp::test
jrl::qp::test::testKKT
bool JRLQP_DLLAPI testKKT(const VectorConstRef &x, const VectorConstRef &u, const MatrixConstRef &G, const VectorConstRef &a, const MatrixConstRef &C, const VectorConstRef &bl, const VectorConstRef &bu, const VectorConstRef &xl, const VectorConstRef &xu, bool transposedC=false, double tau_p=1e-6, double tau_d=1e-6)
Definition: kkt.cpp:87
jrl::qp::test
Definition: BoxAndSingleConstraintSolver.h:36
jrl::qp::test::testKKTFeasibility
bool JRLQP_DLLAPI testKKTFeasibility(const VectorConstRef &x, const VectorConstRef &u, const MatrixConstRef &C, const VectorConstRef &bl, const VectorConstRef &bu, const VectorConstRef &xl, const VectorConstRef &xu, bool transposedC=false, double tau_p=1e-6, double tau_d=1e-6)
Definition: kkt.cpp:152
jrl::qp::VectorConstRef
Eigen::Ref< const Eigen::VectorXd > VectorConstRef
Definition: defs.h:13
jrl::qp::test::checkDimensions
void JRLQP_DLLAPI checkDimensions(const MatrixConstRef &G, const VectorConstRef &a, const MatrixConstRef &C, const VectorConstRef &bl, const VectorConstRef &bu, const VectorConstRef &xl, const VectorConstRef &xu, bool transposedC=false)
problems.h
jrl::qp::MatrixConstRef
Eigen::Ref< const Eigen::MatrixXd > MatrixConstRef
Definition: defs.h:11
JRLQP_DLLAPI
#define JRLQP_DLLAPI
Definition: api.h:35
jrl::qp::test::testKKTStationarity
bool JRLQP_DLLAPI testKKTStationarity(const VectorConstRef &x, const VectorConstRef &u, const MatrixConstRef &G, const VectorConstRef &a, const MatrixConstRef &C, const VectorConstRef &bl, const VectorConstRef &bu, const VectorConstRef &xl, const VectorConstRef &xu, bool transposedC=false, double tau_d=1e-6)
Definition: kkt.cpp:111
defs.h
api.h