42 #ifndef QP_SOLVER_RELAXED_TESTER_H
43 #define QP_SOLVER_RELAXED_TESTER_H
45 #include "ConstrainedOptPack_QPSolverRelaxed.hpp"
48 namespace ConstrainedOptPack {
169 value_type opt_warning_tol = 1e-10
170 ,value_type opt_error_tol = 1e-5
171 ,value_type feas_warning_tol = 1e-10
172 ,value_type feas_error_tol = 1e-5
173 ,value_type comp_warning_tol = 1e-10
174 ,value_type comp_error_tol = 1e-5
228 ,
const value_type infinite_bound
229 ,std::ostream* out,
bool print_all_warnings,
bool print_vectors
230 ,
const Vector& g,
const MatrixSymOp& G
232 ,
const Vector& dL,
const Vector& dU
234 ,
const Vector& eL,
const Vector& eU
236 ,
const value_type* obj_d
237 ,
const value_type* eta,
const Vector* d
239 ,
const Vector* mu,
const Vector* Ed
240 ,
const Vector* lambda,
const Vector* Fd
247 ,
const value_type infinite_bound
248 ,std::ostream* out,
bool print_all_warnings,
bool print_vectors
249 ,
const Vector& g,
const MatrixSymOp& G
251 ,
const Vector& dL,
const Vector& dU
253 ,
const Vector& eL,
const Vector& eU
254 ,
const value_type* obj_d
255 ,
const value_type* eta,
const Vector* d
257 ,
const Vector* mu,
const Vector* Ed
264 ,
const value_type infinite_bound
265 ,std::ostream* out,
bool print_all_warnings,
bool print_vectors
266 ,
const Vector& g,
const MatrixSymOp& G
268 ,
const Vector& dL,
const Vector& dU
270 ,
const value_type* obj_d
271 ,
const value_type* eta,
const Vector* d
273 ,
const Vector* lambda,
const Vector* Fd
282 ,
const value_type infinite_bound
283 ,std::ostream* out,
bool print_all_warnings,
bool print_vectors
284 ,
const Vector& g,
const MatrixSymOp& G
285 ,
const Vector& dL,
const Vector& dU
286 ,
const value_type* obj_d
297 ,
const value_type infinite_bound
298 ,std::ostream* out,
bool print_all_warnings,
bool print_vectors
299 ,
const Vector& g,
const MatrixSymOp& G
301 ,
const Vector* dL,
const Vector* dU
303 ,
const Vector* eL,
const Vector* eU
305 ,
const value_type* obj_d
306 ,
const value_type* eta,
const Vector* d
308 ,
const Vector* mu,
const Vector* Ed
309 ,
const Vector* lambda,
const Vector* Fd
321 ,
const value_type infinite_bound
322 ,std::ostream* out,
bool print_all_warnings,
bool print_vectors
323 ,
const Vector& g,
const MatrixSymOp& G
325 ,
const Vector* dL,
const Vector* dU
327 ,
const Vector* eL,
const Vector* eU
329 ,
const value_type* obj_d
330 ,
const value_type* eta,
const Vector* d
332 ,
const Vector* mu,
const Vector* Ed
333 ,
const Vector* lambda,
const Vector* Fd
340 #endif // QP_SOLVER_RELAXED_TESTER_H
Tests the optimality conditions of the output from a QPSolverRelaxed object.
virtual bool imp_check_optimality_conditions(QPSolverStats::ESolutionType solution_type, const value_type infinite_bound, std::ostream *out, bool print_all_warnings, bool print_vectors, const Vector &g, const MatrixSymOp &G, value_type etaL, const Vector *dL, const Vector *dU, const MatrixOp *E, BLAS_Cpp::Transp trans_E, const Vector *b, const Vector *eL, const Vector *eU, const MatrixOp *F, BLAS_Cpp::Transp trans_F, const Vector *f, const value_type *obj_d, const value_type *eta, const Vector *d, const Vector *nu, const Vector *mu, const Vector *Ed, const Vector *lambda, const Vector *Fd)
Subclasses are to override this to implement the testing code.
STANDARD_MEMBER_COMPOSITION_MEMBERS(value_type, opt_warning_tol)
virtual ~QPSolverRelaxedTester()
virtual bool check_optimality_conditions(QPSolverStats::ESolutionType solution_type, const value_type infinite_bound, std::ostream *out, bool print_all_warnings, bool print_vectors, const Vector &g, const MatrixSymOp &G, value_type etaL, const Vector &dL, const Vector &dU, const MatrixOp &E, BLAS_Cpp::Transp trans_E, const Vector &b, const Vector &eL, const Vector &eU, const MatrixOp &F, BLAS_Cpp::Transp trans_F, const Vector &f, const value_type *obj_d, const value_type *eta, const Vector *d, const Vector *nu, const Vector *mu, const Vector *Ed, const Vector *lambda, const Vector *Fd)
Check the optimality conditions for the solved (or partially solved) QP.
QPSolverRelaxedTester(value_type opt_warning_tol=1e-10, value_type opt_error_tol=1e-5, value_type feas_warning_tol=1e-10, value_type feas_error_tol=1e-5, value_type comp_warning_tol=1e-10, value_type comp_error_tol=1e-5)
ESolutionType
Enumeration for the type of point returned from solve_qp(...).