Couenne 0.5.8
Public Member Functions | Protected Attributes | List of all members
Couenne::CouenneFPsolution Class Reference

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

#include <CouenneFPpool.hpp>

+ Collaboration diagram for Couenne::CouenneFPsolution:

Public Member Functions

 CouenneFPsolution (CouenneProblem *p, CouNumber *x, bool copied=false)
 CouenneProblem-aware constructor. More...
 
 CouenneFPsolution (const CouenneFPsolution &src)
 copy constructor More...
 
CouenneFPsolutionoperator= (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

CouNumberx_
 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...
 
CouenneProblemproblem_
 holds pointer to problem to check integrality in comparison of integer variables More...
 

Detailed Description

Class containing a solution with infeasibility evaluation.

Definition at line 32 of file CouenneFPpool.hpp.

Constructor & Destructor Documentation

◆ CouenneFPsolution() [1/2]

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

CouenneProblem-aware constructor.

◆ CouenneFPsolution() [2/2]

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

copy constructor

◆ ~CouenneFPsolution()

Couenne::CouenneFPsolution::~CouenneFPsolution ( )

destructor

Member Function Documentation

◆ operator=()

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

assignment

◆ n()

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

returns size

Definition at line 65 of file CouenneFPpool.hpp.

◆ x()

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

returns vector

Definition at line 68 of file CouenneFPpool.hpp.

◆ compare()

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

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

Member Data Documentation

◆ x_

CouNumber* Couenne::CouenneFPsolution::x_
protected

solution

Definition at line 36 of file CouenneFPpool.hpp.

◆ n_

int Couenne::CouenneFPsolution::n_
protected

number of variables (for independence from CouenneProblem)

Definition at line 37 of file CouenneFPpool.hpp.

◆ nNLinf_

int Couenne::CouenneFPsolution::nNLinf_
protected

number of NL infeasibilities

Definition at line 38 of file CouenneFPpool.hpp.

◆ nIinf_

int Couenne::CouenneFPsolution::nIinf_
protected

number of integer infeasibilities

Definition at line 39 of file CouenneFPpool.hpp.

◆ objVal_

CouNumber Couenne::CouenneFPsolution::objVal_
protected

objective function value

Definition at line 40 of file CouenneFPpool.hpp.

◆ maxNLinf_

CouNumber Couenne::CouenneFPsolution::maxNLinf_
protected

maximum NL infeasibility

Definition at line 41 of file CouenneFPpool.hpp.

◆ maxIinf_

CouNumber Couenne::CouenneFPsolution::maxIinf_
protected

maximum integer infeasibility

Definition at line 42 of file CouenneFPpool.hpp.

◆ copied_

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.

◆ problem_

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.


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