Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

QpBoundData Class Reference
[QpBound]

#include <QpBoundData.h>

Inheritance diagram for QpBoundData:

Data List of all members.

Public Methods

 QpBoundData (QpBound *f, double alpha, OoqpVector *g, SymMatrix *Q, OoqpVector *l, OoqpVector *index_lower_, OoqpVector *u, OoqpVector *index_upper_)
virtual double objectiveValue (Variables *vars)
virtual void putQIntoAt (SymMatrix &M, int row, int col)
virtual void putQIntoAt (GenMatrix &M, int row, int col)
virtual void Qmult (double beta, OoqpVector &y, double alpha, OoqpVector &x)
virtual int getN ()
virtual int getNlower ()
virtual int getNupper ()
virtual void getg (OoqpVector &c)
virtual void getl (OoqpVector &l)
virtual void getu (OoqpVector &u)
virtual double datanorm ()
virtual void datainput (MpsReader *reader, int &ierr)
virtual void datarandom ()
virtual void print ()
OoqpVector * getIndexLower ()
OoqpVector * getIndexUpper ()

Protected Attributes

int nx
int nlower
int nupper
SymMatrixHandle mQ
double alpha
OoqpVectorHandle c
OoqpVectorHandle lower
OoqpVectorHandle upper
OoqpVectorHandle index_lower
OoqpVectorHandle index_upper

Detailed Description

Data for the bounded QP formulation.


Constructor & Destructor Documentation

QpBoundData::QpBoundData (  QpBound *    f,
double    alpha,
OoqpVector *    g,
SymMatrix *    Q,
OoqpVector *    l,
OoqpVector *    index_lower_,
OoqpVector *    u,
OoqpVector *    index_upper_
) 
 

constructor in which storage is allocated externally

Parameters:
f  contains the QpBoundData object constructed from the other parameters


Member Function Documentation

virtual void QpBoundData::datainput (  MpsReader *    reader,
int &    ierr
)  [virtual]
 

get problem data from a QPS file

virtual double QpBoundData::datanorm (    )  [virtual]
 

compute the norm of the problem data

Implements Data.

virtual void QpBoundData::datarandom (    )  [virtual]
 

generate random problem data

virtual void QpBoundData::getg (  OoqpVector &    c )  [virtual]
 

returns the linear term from objective function

OoqpVector* QpBoundData::getIndexLower (    )  [inline]
 

return indices of defined lower bounds

OoqpVector* QpBoundData::getIndexUpper (    )  [inline]
 

return indices of defined upper bounds

virtual void QpBoundData::getl (  OoqpVector &    l )  [virtual]
 

returns the vector of lower bounds

virtual int QpBoundData::getN (    )  [virtual]
 

return problem dimension

virtual int QpBoundData::getNlower (    )  [virtual]
 

returns the actual number of lower bounds

virtual int QpBoundData::getNupper (    )  [virtual]
 

returns the actual number of upper bounds

virtual void QpBoundData::getu (  OoqpVector &    u )  [virtual]
 

returns the vector of upper bounds

virtual double QpBoundData::objectiveValue (  Variables *    vars )  [virtual]
 

calculate objective function at given set of mariables

virtual void QpBoundData::print (    )  [virtual]
 

print the problem data

Implements Data.

virtual void QpBoundData::putQIntoAt (  GenMatrix &    M,
int    row,
int    col
)  [virtual]
 

stuff the Hessian into the coefficient matrix M of the linear system to be solved at each interior-point iteration. M is stored as a general matrix.

virtual void QpBoundData::putQIntoAt (  SymMatrix &    M,
int    row,
int    col
)  [virtual]
 

stuff the Hessian into the coefficient matrix M of the linear system to be solved at each interior-point iteration. M is stored as a symmetric matrix.

virtual void QpBoundData::Qmult (  double    beta,
OoqpVector &    y,
double    alpha,
OoqpVector &    x
)  [virtual]
 

perform matrix-vector multiplication with the Hessian Q: y <- beta * y + alpha * Q * x


Member Data Documentation

double QpBoundData::alpha [protected]
 

scalar constant term in the obejctive

OoqpVectorHandle QpBoundData::c [protected]
 

linear term in the objective

OoqpVectorHandle QpBoundData::index_lower [protected]
 

vector indicating locations of the finite components of the lower bound vector l

OoqpVectorHandle QpBoundData::index_upper [protected]
 

vector indicating locations of the finite components of the upper bound vector l

OoqpVectorHandle QpBoundData::lower [protected]
 

vector of lower bounds

SymMatrixHandle QpBoundData::mQ [protected]
 

Hessian of the objective

int QpBoundData::nlower [protected]
 

number of actual lower bound constraints

int QpBoundData::nupper [protected]
 

number of actual upper bound constraints

int QpBoundData::nx [protected]
 

number of elements in x

OoqpVectorHandle QpBoundData::upper [protected]
 

vector of upper bounds


The documentation for this class was generated from the following file:
Generated on Mon May 24 17:40:46 2004 for OOQP by doxygen1.2.18