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. More... | |
| CouenneFPsolution (const CouenneFPsolution &src) | |
| copy constructor More... | |
| CouenneFPsolution & | operator= (const CouenneFPsolution &src) |
| assignment More... | |
| ~CouenneFPsolution () | |
| destructor More... | |
| const int | n () const |
| returns size More... | |
| const double * | x () const |
| returns vector More... | |
| bool | compare (const CouenneFPsolution &other, enum what_to_compare comparedTerm) const |
| basic comparison procedure – what to compare depends on user's choice More... | |
Protected Attributes | |
| CouNumber * | x_ |
| solution More... | |
| int | n_ |
| number of variables (for independence from CouenneProblem) More... | |
| int | nNLinf_ |
| number of NL infeasibilities More... | |
| int | nIinf_ |
| number of integer infeasibilities More... | |
| CouNumber | objVal_ |
| objective function value More... | |
| CouNumber | maxNLinf_ |
| maximum NL infeasibility More... | |
| CouNumber | maxIinf_ |
| maximum integer infeasibility More... | |
| bool | copied_ |
| This is a temporary copy, not really a solution holder. More... | |
| CouenneProblem * | problem_ |
| holds pointer to problem to check integrality in comparison of integer variables More... | |
Class containing a solution with infeasibility evaluation.
Definition at line 32 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.
| CouenneFPsolution::CouenneFPsolution | ( | const CouenneFPsolution & | src | ) |
copy constructor
Definition at line 95 of file CouenneFPpool.cpp.
| CouenneFPsolution::~CouenneFPsolution | ( | ) |
destructor
Definition at line 124 of file CouenneFPpool.cpp.
| CouenneFPsolution & CouenneFPsolution::operator= | ( | const CouenneFPsolution & | src | ) |
assignment
Definition at line 108 of file CouenneFPpool.cpp.
|
inline |
returns size
Definition at line 65 of file CouenneFPpool.hpp.
|
inline |
returns vector
Definition at line 68 of file CouenneFPpool.hpp.
| 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 131 of file CouenneFPpool.cpp.
|
protected |
solution
Definition at line 36 of file CouenneFPpool.hpp.
|
protected |
number of variables (for independence from CouenneProblem)
Definition at line 37 of file CouenneFPpool.hpp.
|
protected |
number of NL infeasibilities
Definition at line 38 of file CouenneFPpool.hpp.
|
protected |
number of integer infeasibilities
Definition at line 39 of file CouenneFPpool.hpp.
|
protected |
objective function value
Definition at line 40 of file CouenneFPpool.hpp.
|
protected |
maximum NL infeasibility
Definition at line 41 of file CouenneFPpool.hpp.
|
protected |
maximum integer infeasibility
Definition at line 42 of file CouenneFPpool.hpp.
|
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.
|
protected |
holds pointer to problem to check integrality in comparison of integer variables
Definition at line 50 of file CouenneFPpool.hpp.
1.8.5