Dip 0.95.0
Loading...
Searching...
No Matches
Protected Attributes | List of all members
DecompSolution Class Reference

#include <DecompSolution.h>

Public Member Functions

Helper functions (public).
const int getSize () const
 Get length of solution.
 
const double * getValues () const
 Get solution values.
 
const double getQuality () const
 Get quality of solution.
 
virtual void print (int precision=4, std::ostream &os=std::cout) const
 Print solution.
 
virtual void print (const std::vector< std::string > &colNames, int precision=2, std::ostream &os=std::cout) const
 Print solution in MIPLIB2010 solution checker format.
 
Copy Constructors
 DecompSolution (const DecompSolution &source)
 
DecompSolutionoperator= (const DecompSolution &rhs)
 
Constructor and Destructor
 DecompSolution ()
 Default constructor.
 
 DecompSolution (const int size, const double *values, const double quality)
 Constructor.
 
 DecompSolution (const int size, const double *values, const double *cost)
 
virtual ~DecompSolution ()
 

Protected Attributes

int m_size
 Length of solution (number of columns).
 
double * m_values
 Solution values.
 
double m_quality
 Quality of solution (bound wrt to objective).
 

Detailed Description

Definition at line 19 of file DecompSolution.h.

Constructor & Destructor Documentation

◆ DecompSolution() [1/4]

DecompSolution::DecompSolution ( const DecompSolution & source)
inline

Definition at line 94 of file DecompSolution.h.

◆ DecompSolution() [2/4]

DecompSolution::DecompSolution ( )
inline

Default constructor.

Takes size of solution.

Definition at line 118 of file DecompSolution.h.

◆ DecompSolution() [3/4]

DecompSolution::DecompSolution ( const int size,
const double * values,
const double quality )
inline

Constructor.

Definition at line 125 of file DecompSolution.h.

◆ DecompSolution() [4/4]

DecompSolution::DecompSolution ( const int size,
const double * values,
const double * cost )
inline

Definition at line 137 of file DecompSolution.h.

◆ ~DecompSolution()

virtual DecompSolution::~DecompSolution ( )
inlinevirtual

Definition at line 156 of file DecompSolution.h.

Member Function Documentation

◆ getSize()

const int DecompSolution::getSize ( ) const
inline

Get length of solution.

Definition at line 34 of file DecompSolution.h.

◆ getValues()

const double * DecompSolution::getValues ( ) const
inline

Get solution values.

Definition at line 39 of file DecompSolution.h.

◆ getQuality()

const double DecompSolution::getQuality ( ) const
inline

Get quality of solution.

Definition at line 44 of file DecompSolution.h.

◆ print() [1/2]

virtual void DecompSolution::print ( int precision = 4,
std::ostream & os = std::cout ) const
inlinevirtual

Print solution.

Definition at line 50 of file DecompSolution.h.

◆ print() [2/2]

virtual void DecompSolution::print ( const std::vector< std::string > & colNames,
int precision = 2,
std::ostream & os = std::cout ) const
inlinevirtual

Print solution in MIPLIB2010 solution checker format.

Definition at line 72 of file DecompSolution.h.

◆ operator=()

DecompSolution & DecompSolution::operator= ( const DecompSolution & rhs)
inline

Definition at line 102 of file DecompSolution.h.

Member Data Documentation

◆ m_size

int DecompSolution::m_size
protected

Length of solution (number of columns).

Definition at line 22 of file DecompSolution.h.

◆ m_values

double* DecompSolution::m_values
protected

Solution values.

Definition at line 25 of file DecompSolution.h.

◆ m_quality

double DecompSolution::m_quality
protected

Quality of solution (bound wrt to objective).

Definition at line 28 of file DecompSolution.h.


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