ConstrainedOptPack: C++ Tools for Constrained (and Unconstrained) Optimization  Version of the Day
List of all members
ConstrainedOptPack::QPSolverRelaxedQPKWIK Class Reference

Solves Quadratic Programming (QP) problem using the primal-dual active-set solver QPKWIK. More...

#include <ConstrainedOptPack_QPSolverRelaxedQPKWIK.hpp>

Inheritance diagram for ConstrainedOptPack::QPSolverRelaxedQPKWIK:
Inheritance graph
[legend]

Initialization

 STANDARD_MEMBER_COMPOSITION_MEMBERS (value_type, max_qp_iter_frac)
 Set the maximum number of QP iterations as max_itr = max_qp_iter_frac * n. More...
 
 STANDARD_MEMBER_COMPOSITION_MEMBERS (value_type, infinite_bound)
 Set the value of an infinite bound. More...
 
 QPSolverRelaxedQPKWIK (value_type max_qp_iter_frac=10.0, value_type infinite_bound=1e+20)
 
 ~QPSolverRelaxedQPKWIK ()
 

Overridden from QPSolverRelaxed

QPSolverStats get_qp_stats () const
 
void release_memory ()
 
QPSolverStats::ESolutionType imp_solve_qp (std::ostream *out, EOutputLevel olevel, ERunTests test_what, 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, value_type *obj_d, value_type *eta, VectorMutable *d, VectorMutable *nu, VectorMutable *mu, VectorMutable *Ed, VectorMutable *lambda, VectorMutable *Fd)
 

Additional Inherited Members

- Public Types inherited from ConstrainedOptPack::QPSolverRelaxed
- Public Member Functions inherited from ConstrainedOptPack::QPSolverRelaxed
 STANDARD_MEMBER_COMPOSITION_MEMBERS (value_type, infinite_bound)
 Set the scalar that will be used to identigy infinite bounds. More...
 
 QPSolverRelaxed ()
 
virtual ~QPSolverRelaxed ()
 
virtual QPSolverStats::ESolutionType solve_qp (std::ostream *out, EOutputLevel olevel, ERunTests test_what, 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, value_type *obj_d, value_type *eta, VectorMutable *d, VectorMutable *nu, VectorMutable *mu, VectorMutable *Ed, VectorMutable *lambda, VectorMutable *Fd)
 Solve the QP. More...
 
virtual QPSolverStats::ESolutionType solve_qp (std::ostream *out, EOutputLevel olevel, ERunTests test_what, 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, value_type *obj_d, value_type *eta, VectorMutable *d, VectorMutable *nu, VectorMutable *mu, VectorMutable *Ed)
 Solve the QP without general equality constrants. More...
 
virtual QPSolverStats::ESolutionType solve_qp (std::ostream *out, EOutputLevel olevel, ERunTests test_what, const Vector &g, const MatrixSymOp &G, value_type etaL, const Vector &dL, const Vector &dU, const MatrixOp &F, BLAS_Cpp::Transp trans_F, const Vector &f, value_type *obj_d, value_type *eta, VectorMutable *d, VectorMutable *nu, VectorMutable *lambda, VectorMutable *Fd)
 Solve the QP without general inequality constrants. More...
 
virtual QPSolverStats::ESolutionType solve_qp (std::ostream *out, EOutputLevel olevel, ERunTests test_what, const Vector &g, const MatrixSymOp &G, const Vector &dL, const Vector &dU, value_type *obj_d, VectorMutable *d, VectorMutable *nu)
 Solve the QP without general equality or inequality constrants (no relaxation needed). More...
 
virtual QPSolverStats::ESolutionType solve_qp (std::ostream *out, EOutputLevel olevel, ERunTests test_what, 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, value_type *obj_d, value_type *eta, VectorMutable *d, VectorMutable *nu, VectorMutable *mu, VectorMutable *Ed, VectorMutable *lambda, VectorMutable *Fd)
 This is a more flexible function where the client can set different constraints to be included. More...
 
- Static Public Member Functions inherited from ConstrainedOptPack::QPSolverRelaxed
static void validate_input (const value_type infinite_bound, 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)
 This is a (static) function that is used as a utility to validate the input arguments to solve_qp(). More...
 
static void print_qp_input (const value_type infinite_bound, std::ostream *out, EOutputLevel olevel, 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, value_type *eta, VectorMutable *d, VectorMutable *nu, VectorMutable *mu, VectorMutable *lambda)
 Utility (static) function for printing the input input/output arguments before the QP solver is run. The QP solver subclasses can call this function. More...
 
static void print_qp_output (const value_type infinite_bound, std::ostream *out, EOutputLevel olevel, 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)
 Utility (static) function for printing the output input/output arguments after the QP solver is run. The QP solver subclasses can call this function. More...
 
- Protected Member Functions inherited from ConstrainedOptPack::QPSolverRelaxed

Detailed Description

Solves Quadratic Programming (QP) problem using the primal-dual active-set solver QPKWIK.

In this implementation it is required that G support the {MatrixExtractInvCholFactor} interface and is therefore quite restrictive on the likes of QPs it can solve.

Definition at line 61 of file ConstrainedOptPack_QPSolverRelaxedQPKWIK.hpp.

Constructor & Destructor Documentation

ConstrainedOptPack::QPSolverRelaxedQPKWIK::QPSolverRelaxedQPKWIK ( value_type  max_qp_iter_frac = 10.0,
value_type  infinite_bound = 1e+20 
)

ConstrainedOptPack::QPSolverRelaxedQPKWIK::~QPSolverRelaxedQPKWIK ( )

Member Function Documentation

ConstrainedOptPack::QPSolverRelaxedQPKWIK::STANDARD_MEMBER_COMPOSITION_MEMBERS ( value_type  ,
max_qp_iter_frac   
)

Set the maximum number of QP iterations as max_itr = max_qp_iter_frac * n.

ConstrainedOptPack::QPSolverRelaxedQPKWIK::STANDARD_MEMBER_COMPOSITION_MEMBERS ( value_type  ,
infinite_bound   
)

Set the value of an infinite bound.

QPSolverStats ConstrainedOptPack::QPSolverRelaxedQPKWIK::get_qp_stats ( ) const
virtual
void ConstrainedOptPack::QPSolverRelaxedQPKWIK::release_memory ( )
virtual
QPSolverStats::ESolutionType ConstrainedOptPack::QPSolverRelaxedQPKWIK::imp_solve_qp ( std::ostream *  out,
EOutputLevel  olevel,
ERunTests  test_what,
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,
value_type *  obj_d,
value_type *  eta,
VectorMutable *  d,
VectorMutable *  nu,
VectorMutable *  mu,
VectorMutable *  Ed,
VectorMutable *  lambda,
VectorMutable *  Fd 
)
protectedvirtual

The documentation for this class was generated from the following file: