#include <CouenneFPpool.hpp>
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 | |
CouenneFPsolution & | operator= (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 | |
CouNumber * | x_ |
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. |
Definition at line 31 of file CouenneFPpool.hpp.
CouenneFPsolution::CouenneFPsolution | ( | CouenneProblem * | p, | |
CouNumber * | x, | |||
bool | copied = false | |||
) |
CouenneProblem-aware constructor.
NOTE: the copied flag means we won't use this solution for anything but testing it against a tabu list, so we don't need to perform all checks
Definition at line 25 of file CouenneFPpool.cpp.
References Couenne::AUX, Couenne::expression::AUX_GEQ, Couenne::expression::AUX_LEQ, copied_, COUENNE_EPS, diff(), Couenne::isInteger(), Couenne::LINEAR, maxIinf_, maxNLinf_, nIinf_, nNLinf_, and x_.
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
Definition at line 95 of file CouenneFPpool.cpp.
CouenneFPsolution::CouenneFPsolution | ( | const CouenneFPsolution & | src | ) |
CouenneFPsolution::~CouenneFPsolution | ( | ) |
CouenneFPsolution & CouenneFPsolution::operator= | ( | const CouenneFPsolution & | src | ) |
const int Couenne::CouenneFPsolution::n | ( | ) | const [inline] |
returns size
Definition at line 70 of file CouenneFPpool.hpp.
References n_.
Referenced by Couenne::compareSol::operator()().
const double* Couenne::CouenneFPsolution::x | ( | ) | const [inline] |
returns vector
Definition at line 73 of file CouenneFPpool.hpp.
References x_.
Referenced by Couenne::compareSol::operator()().
bool CouenneFPsolution::compare | ( | const CouenneFPsolution & | other, | |
enum what_to_compare | comparedTerm | |||
) | const |
basic comparison procedure -- what to compare depends on user's choice
Definition at line 147 of file CouenneFPpool.cpp.
References maxIinf_, maxNLinf_, nIinf_, nNLinf_, Couenne::OBJVAL, objVal_, Couenne::SUM_INF, and Couenne::SUM_NINF.
Referenced by Couenne::operator<().
CouNumber* Couenne::CouenneFPsolution::x_ [protected] |
solution
Definition at line 35 of file CouenneFPpool.hpp.
Referenced by CouenneFPsolution(), operator=(), x(), and ~CouenneFPsolution().
int Couenne::CouenneFPsolution::n_ [protected] |
number of variables (for independence from CouenneProblem
Definition at line 36 of file CouenneFPpool.hpp.
Referenced by n(), and operator=().
int Couenne::CouenneFPsolution::nNLinf_ [protected] |
number of NL infeasibilities
Definition at line 37 of file CouenneFPpool.hpp.
Referenced by compare(), CouenneFPsolution(), and operator=().
int Couenne::CouenneFPsolution::nIinf_ [protected] |
number of integer infeasibilities
Definition at line 38 of file CouenneFPpool.hpp.
Referenced by compare(), CouenneFPsolution(), and operator=().
CouNumber Couenne::CouenneFPsolution::objVal_ [protected] |
objective function value
Definition at line 39 of file CouenneFPpool.hpp.
Referenced by compare(), and operator=().
CouNumber Couenne::CouenneFPsolution::maxNLinf_ [protected] |
maximum NL infeasibility
Definition at line 40 of file CouenneFPpool.hpp.
Referenced by compare(), CouenneFPsolution(), and operator=().
CouNumber Couenne::CouenneFPsolution::maxIinf_ [protected] |
maximum integer infeasibility
Definition at line 41 of file CouenneFPpool.hpp.
Referenced by compare(), CouenneFPsolution(), and operator=().
bool Couenne::CouenneFPsolution::copied_ [protected] |
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.
Referenced by CouenneFPsolution(), operator=(), and ~CouenneFPsolution().