Couenne::CouenneFPsolution Class Reference

Class containing a solution with infeasibility evaluation. More...

#include <CouenneFPpool.hpp>

List of all members.

Public Member Functions

 CouenneFPsolution (CouenneProblem *p, CouNumber *x, bool copied=false)
 CouenneProblem-aware constructor.
 CouenneFPsolution (CouNumber *x, int n, int nNLinf=1, int nIinf=1, CouNumber objVal=COIN_DBL_MAX, CouNumber maxNLinf=COIN_DBL_MAX, CouNumber maxIinf=COIN_DBL_MAX)
 independent constructor --- must provide other data as no CouenneProblem to compute them
 CouenneFPsolution (const CouenneFPsolution &src)
 copy constructor
CouenneFPsolutionoperator= (const CouenneFPsolution &src)
 assignment
 ~CouenneFPsolution ()
 destructor
const int n () const
 returns size
const double * x () const
 returns vector
bool compare (const CouenneFPsolution &other, enum what_to_compare comparedTerm) const
 basic comparison procedure -- what to compare depends on user's choice

Protected Attributes

CouNumberx_
 solution
int n_
 number of variables (for independence from CouenneProblem
int nNLinf_
 number of NL infeasibilities
int nIinf_
 number of integer infeasibilities
CouNumber objVal_
 objective function value
CouNumber maxNLinf_
 maximum NL infeasibility
CouNumber maxIinf_
 maximum integer infeasibility
bool copied_
 This is a temporary copy, not really a solution holder.

Detailed Description

Class containing a solution with infeasibility evaluation.

Definition at line 31 of file CouenneFPpool.hpp.


Constructor & Destructor Documentation

Couenne::CouenneFPsolution::CouenneFPsolution ( CouenneProblem p,
CouNumber x,
bool  copied = false 
)

CouenneProblem-aware constructor.

Couenne::CouenneFPsolution::CouenneFPsolution ( CouNumber x,
int  n,
int  nNLinf = 1,
int  nIinf = 1,
CouNumber  objVal = COIN_DBL_MAX,
CouNumber  maxNLinf = COIN_DBL_MAX,
CouNumber  maxIinf = COIN_DBL_MAX 
)

independent constructor --- must provide other data as no CouenneProblem to compute them

Couenne::CouenneFPsolution::CouenneFPsolution ( const CouenneFPsolution src  ) 

copy constructor

Couenne::CouenneFPsolution::~CouenneFPsolution (  ) 

destructor


Member Function Documentation

CouenneFPsolution& Couenne::CouenneFPsolution::operator= ( const CouenneFPsolution src  ) 

assignment

const int Couenne::CouenneFPsolution::n (  )  const [inline]

returns size

Definition at line 70 of file CouenneFPpool.hpp.

References n_.

const double* Couenne::CouenneFPsolution::x (  )  const [inline]

returns vector

Definition at line 73 of file CouenneFPpool.hpp.

References x_.

bool Couenne::CouenneFPsolution::compare ( const CouenneFPsolution other,
enum what_to_compare  comparedTerm 
) const

basic comparison procedure -- what to compare depends on user's choice

Referenced by Couenne::operator<().


Member Data Documentation

solution

Definition at line 35 of file CouenneFPpool.hpp.

Referenced by x().

number of variables (for independence from CouenneProblem

Definition at line 36 of file CouenneFPpool.hpp.

Referenced by n().

number of NL infeasibilities

Definition at line 37 of file CouenneFPpool.hpp.

number of integer infeasibilities

Definition at line 38 of file CouenneFPpool.hpp.

objective function value

Definition at line 39 of file CouenneFPpool.hpp.

maximum NL infeasibility

Definition at line 40 of file CouenneFPpool.hpp.

maximum integer infeasibility

Definition at line 41 of file CouenneFPpool.hpp.

This is a temporary copy, not really a solution holder.

As a result, all the above members are meaningless for copied solutions

Definition at line 47 of file CouenneFPpool.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 17 Sep 2013 for Couenne by  doxygen 1.6.1