Class containing a solution with infeasibility evaluation. More...
#include <CouenneFPpool.hpp>
Public Member Functions | |
| CouenneFPsolution (CouenneProblem *p, CouNumber *x, bool copied=false) | |
| CouenneProblem-aware constructor. | |
| 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. | |
| CouenneProblem * | problem_ |
| holds pointer to problem to check integrality in comparison of integer variables | |
Class containing a solution with infeasibility evaluation.
Definition at line 32 of file CouenneFPpool.hpp.
| Couenne::CouenneFPsolution::CouenneFPsolution | ( | CouenneProblem * | p, | |
| CouNumber * | x, | |||
| bool | copied = false | |||
| ) |
CouenneProblem-aware constructor.
| Couenne::CouenneFPsolution::CouenneFPsolution | ( | const CouenneFPsolution & | src | ) |
copy constructor
| Couenne::CouenneFPsolution::~CouenneFPsolution | ( | ) |
destructor
| CouenneFPsolution& Couenne::CouenneFPsolution::operator= | ( | const CouenneFPsolution & | src | ) |
assignment
| const int Couenne::CouenneFPsolution::n | ( | ) | const [inline] |
| const double* Couenne::CouenneFPsolution::x | ( | ) | const [inline] |
| 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<().
CouNumber* Couenne::CouenneFPsolution::x_ [protected] |
int Couenne::CouenneFPsolution::n_ [protected] |
number of variables (for independence from CouenneProblem)
Definition at line 37 of file CouenneFPpool.hpp.
Referenced by n().
int Couenne::CouenneFPsolution::nNLinf_ [protected] |
number of NL infeasibilities
Definition at line 38 of file CouenneFPpool.hpp.
int Couenne::CouenneFPsolution::nIinf_ [protected] |
number of integer infeasibilities
Definition at line 39 of file CouenneFPpool.hpp.
CouNumber Couenne::CouenneFPsolution::objVal_ [protected] |
objective function value
Definition at line 40 of file CouenneFPpool.hpp.
CouNumber Couenne::CouenneFPsolution::maxNLinf_ [protected] |
maximum NL infeasibility
Definition at line 41 of file CouenneFPpool.hpp.
CouNumber Couenne::CouenneFPsolution::maxIinf_ [protected] |
maximum integer infeasibility
Definition at line 42 of file CouenneFPpool.hpp.
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 48 of file CouenneFPpool.hpp.
CouenneProblem* Couenne::CouenneFPsolution::problem_ [protected] |
holds pointer to problem to check integrality in comparison of integer variables
Definition at line 50 of file CouenneFPpool.hpp.
1.6.1