BoxAndSingleConstraintSolver.h
Go to the documentation of this file.
1 /* Copyright 2020 CNRS-AIST JRL */
2 
3 #pragma once
4 
6 
7 namespace jrl::qp::experimental
8 {
16 {
17 public:
20 
21  TerminationStatus solve(const VectorConstRef & x0,
22  const VectorConstRef & c,
23  double bl,
24  const VectorConstRef & xl,
25  const VectorConstRef & xu);
26 
27  virtual internal::InitTermination init_() override;
28 
29 private:
30  Eigen::Matrix<double, 1, 1> bl_;
31  Eigen::Matrix<double, 1, 1> bu_;
32 };
33 } // namespace jrl::qp::experimental
34 
35 #include <jrl-qp/test/problems.h>
36 namespace jrl::qp::test
37 {
47 LeastSquareProblem<> JRLQP_DLLAPI generateBoxAndSingleConstraintProblem(int nbVar, bool act, double actLevel = 0.5);
48 
49 } // namespace jrl::qp::test
#define JRLQP_DLLAPI
Definition: api.h:35
Definition: BoxAndSingleConstraintSolver.h:16
Definition: GoldfarbIdnaniSolver.h:13
Definition: TerminationType.h:39
Definition: BlockGISolver.h:16
Definition: BoxAndSingleConstraintSolver.h:37
LeastSquareProblem JRLQP_DLLAPI generateBoxAndSingleConstraintProblem(int nbVar, bool act, double actLevel=0.5)
Definition: BoxAndSingleConstraintSolver.cpp:99
TerminationStatus
Definition: enums.h:27
Eigen::Ref< const Eigen::VectorXd > VectorConstRef
Definition: defs.h:13
Definition: problems.h:65