Go to the documentation of this file.
25 int nStrongActIneq_ = 0;
26 int nWeakActIneq_ = 0;
27 int nStrongActBounds_ = 0;
28 int nWeakActBounds_ = 0;
30 bool doubleSidedIneq_ =
false;
31 bool strictlyFeasible_ =
36 : nVar_(nVar), nObj_(nObj), nEq_(nEq), nIneq_(nIneq), rankObj_(nObj)
51 bool strictlyFeasible)
52 : nVar_(nVar), nObj_(nObj), nEq_(nEq), nIneq_(nIneq), rankObj_(rankObj), nSharedRank_(nSharedRank),
53 nStrongActIneq_(nStrongActIneq), nWeakActIneq_(nWeakActIneq), nStrongActBounds_(nStrongActBounds),
54 nWeakActBounds_(nWeakActBounds), bounds_(bounds), doubleSidedIneq_(doubleSidedIneq),
55 strictlyFeasible_(strictlyFeasible)
91 nStrongActBounds_ = n;
106 doubleSidedIneq_ = b;
111 strictlyFeasible_ = b;
124 bool doubleSidedIneq =
false;
137 KKT computeKKTValues()
const;
138 bool checkKKT()
const;
140 bool dispKKT()
const;
ProblemCharacteristics(int nVar, int nObj, int nEq, int nIneq, int rankObj, int nSharedRank, int nStrongActIneq, int nWeakActIneq, int nStrongActBounds, int nWeakActBounds, int bounds, bool doubleSidedIneq, bool strictlyFeasible)
Definition: randomProblems.h:39
ProblemCharacteristics & nWeakActBounds(int n)
Definition: randomProblems.h:94
ProblemCharacteristics & rankObj(int n)
Definition: randomProblems.h:69
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
RandomLeastSquare JRLQP_DLLAPI randomProblem(const ProblemCharacteristics &characs)
Definition: randomProblems.cpp:15
Eigen::VectorXd bndCompl
Definition: randomProblems.h:134
Definition: problems.h:63
int nObj_
Definition: randomProblems.h:19
Definition: BoxAndSingleConstraintSolver.h:36
Definition: randomProblems.h:118
ProblemCharacteristics & nStrongActIneq(int n)
Definition: randomProblems.h:79
ProblemCharacteristics & bounds(bool b=true)
Definition: randomProblems.h:99
Eigen::VectorXd ineqViol
Definition: randomProblems.h:131
Definition: randomProblems.h:127
ProblemCharacteristics & nEq(int n)
Definition: randomProblems.h:59
Eigen::VectorXd eqViol
Definition: randomProblems.h:130
ProblemCharacteristics(int nVar, int nObj, int nEq, int nIneq)
Definition: randomProblems.h:35
Eigen::VectorXd dL
Definition: randomProblems.h:129
Eigen::VectorXd bndViol
Definition: randomProblems.h:132
Eigen::VectorXd ineqCompl
Definition: randomProblems.h:133
Eigen::VectorXd lambdaBnd
Definition: randomProblems.h:123
ProblemCharacteristics & nSharedRank(int n)
Definition: randomProblems.h:74
ProblemCharacteristics & nStrongActBounds(int n)
Definition: randomProblems.h:89
Eigen::VectorXd x
Definition: randomProblems.h:120
ProblemCharacteristics & nIneq(int n)
Definition: randomProblems.h:64
int nVar_
Definition: randomProblems.h:18
void disp(const std::string &name, const MatrixBase< Derived > &M)
Definition: randomProblems.cpp:268
Eigen::VectorXd lambdaIneq
Definition: randomProblems.h:122
#define JRLQP_DLLAPI
Definition: api.h:35
Eigen::VectorXd lambdaEq
Definition: randomProblems.h:121
ProblemCharacteristics & strictlyFeasible(bool b=true)
Definition: randomProblems.h:109
ProblemCharacteristics(int nVar, int nObj)
Definition: randomProblems.h:34
Definition: randomProblems.h:16
ProblemCharacteristics & doubleSidedIneq(bool b=true)
Definition: randomProblems.h:104
ProblemCharacteristics & nWeakActIneq(int n)
Definition: randomProblems.h:84