Bonmin  1.7
Public Member Functions | Private Attributes
Bonmin::QuadCut Class Reference

#include <BonQuadCut.hpp>

List of all members.

Public Member Functions

 QuadCut ()
 Default constructor.
 QuadCut (const QuadCut &other)
 Copy constructor.
QuadCutoperator= (const QuadCut &rhs)
 Assignment operator.
virtual OsiRowCut * clone () const
 Virtual copy.
 ~QuadCut ()
 Destructor.
void print () const
 Print.
CoinPackedMatrix & Q ()
 Return the matrix stored.
const CoinPackedMatrix & Q () const
 Return the matrix stored.
MatrixStorageTypetype ()
 Acces storage type Acces storage type.
const MatrixStorageTypetype () const
double & c ()
 Acces the constant.
const double & c () const
 Acces the constant.
double violated (const double *solution) const
 Compute cut violation.

Private Member Functions

Arithmetic operators not implemented.
void operator+= (double value)
 add value to every vector entry
void operator-= (double value)
 subtract value from every vector entry
void operator*= (double value)
 multiply every vector entry by value
void operator/= (double value)
 divide every vector entry by value

Private Attributes

double c_
 Stores the constant part of the cut.
CoinPackedMatrix Q_
 Stores quadratic part of cut.
MatrixStorageType type_
 Storage type.

Detailed Description

Definition at line 27 of file BonQuadCut.hpp.


Constructor & Destructor Documentation

Bonmin::QuadCut::QuadCut ( )

Default constructor.

Bonmin::QuadCut::QuadCut ( const QuadCut other)

Copy constructor.

Bonmin::QuadCut::~QuadCut ( )

Destructor.


Member Function Documentation

QuadCut& Bonmin::QuadCut::operator= ( const QuadCut rhs)

Assignment operator.

virtual OsiRowCut* Bonmin::QuadCut::clone ( ) const [virtual]

Virtual copy.

void Bonmin::QuadCut::print ( ) const

Print.

CoinPackedMatrix& Bonmin::QuadCut::Q ( ) [inline]

Return the matrix stored.

Definition at line 49 of file BonQuadCut.hpp.

References Q_.

const CoinPackedMatrix& Bonmin::QuadCut::Q ( ) const [inline]

Return the matrix stored.

Definition at line 54 of file BonQuadCut.hpp.

References Q_.

MatrixStorageType& Bonmin::QuadCut::type ( ) [inline]

Acces storage type Acces storage type.

Definition at line 60 of file BonQuadCut.hpp.

References type_.

const MatrixStorageType& Bonmin::QuadCut::type ( ) const [inline]

Definition at line 63 of file BonQuadCut.hpp.

References type_.

double& Bonmin::QuadCut::c ( ) [inline]

Acces the constant.

Definition at line 67 of file BonQuadCut.hpp.

References c_.

const double& Bonmin::QuadCut::c ( ) const [inline]

Acces the constant.

Definition at line 70 of file BonQuadCut.hpp.

References c_.

double Bonmin::QuadCut::violated ( const double *  solution) const

Compute cut violation.

void Bonmin::QuadCut::operator+= ( double  value) [private]

add value to every vector entry

void Bonmin::QuadCut::operator-= ( double  value) [private]

subtract value from every vector entry

void Bonmin::QuadCut::operator*= ( double  value) [private]

multiply every vector entry by value

void Bonmin::QuadCut::operator/= ( double  value) [private]

divide every vector entry by value


Member Data Documentation

double Bonmin::QuadCut::c_ [private]

Stores the constant part of the cut.

Definition at line 77 of file BonQuadCut.hpp.

Referenced by c().

CoinPackedMatrix Bonmin::QuadCut::Q_ [private]

Stores quadratic part of cut.

Definition at line 79 of file BonQuadCut.hpp.

Referenced by Q().

Storage type.

Definition at line 81 of file BonQuadCut.hpp.

Referenced by type().


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