Couenne 0.5.8
Loading...
Searching...
No Matches
Couenne::CouenneRecordBestSol Class Reference

#include <CouenneRecordBestSol.hpp>

+ Collaboration diagram for Couenne::CouenneRecordBestSol:

Public Member Functions

 CouenneRecordBestSol ()
 Constructor.
 
 CouenneRecordBestSol (const CouenneRecordBestSol &other)
 Copy constructor.
 
 ~CouenneRecordBestSol ()
 Destructor.
 
int getCardInitDom () const
 
bool * getInitIsInt () const
 
std::vector< int > getListInt () const
 
void setInitIsInt (const bool *givenIsInt, const int givenCard)
 
CouNumbergetInitDomLb () const
 
void setInitDomLb (const CouNumber *givenLb, const int givenCard)
 
CouNumbergetInitDomUb () const
 
void setInitDomUb (const CouNumber *givenUb, const int givenCard)
 
void setHasSol (const bool givenHasSol)
 
bool getHasSol () const
 
void setSol (const double *givenSol, const int givenCard, const double givenMaxViol)
 
int getCardSol () const
 
void setCardSol (const int givenCard)
 
double * getSol () const
 
double getMaxViol () const
 
void setVal (const double givenVal)
 
double getVal ()
 
void update (const double *givenSol, const int givenCard, const double givenVal, const double givenMaxViol)
 
void update ()
 
int compareAndSave (const double *solA, const double solAVal, const double solAMaxViol, const bool solAIsFeas, const double *solB, const double solBVal, const double solBMaxViol, const bool solBIsFeas, const int cardSol, const double precision)
 
int getCardModSol () const
 
double * getModSol (const int expectedCard)
 
double getModSolVal () const
 
double getModSolMaxViol () const
 
void setModSol (const double *givenModSol, const int givenModCard, const double givenModVal, const double givenModMaxViol)
 
void printSol (FILE *fsol) const
 

Public Attributes

int cardInitDom
 
bool * initIsInt
 
std::vector< int > listInt
 
CouNumberinitDomLb
 
CouNumberinitDomUb
 
bool hasSol
 
int cardSol
 
double * sol
 
double val
 
double maxViol
 
int cardModSol
 
double * modSol
 
double modSolVal
 
double modSolMaxViol
 

Detailed Description

Definition at line 19 of file CouenneRecordBestSol.hpp.

Constructor & Destructor Documentation

◆ CouenneRecordBestSol() [1/2]

Couenne::CouenneRecordBestSol::CouenneRecordBestSol ( )

Constructor.

◆ CouenneRecordBestSol() [2/2]

Couenne::CouenneRecordBestSol::CouenneRecordBestSol ( const CouenneRecordBestSol & other)

Copy constructor.

◆ ~CouenneRecordBestSol()

Couenne::CouenneRecordBestSol::~CouenneRecordBestSol ( )

Destructor.

Member Function Documentation

◆ getCardInitDom()

int Couenne::CouenneRecordBestSol::getCardInitDom ( ) const
inline

Definition at line 61 of file CouenneRecordBestSol.hpp.

◆ getInitIsInt()

bool * Couenne::CouenneRecordBestSol::getInitIsInt ( ) const
inline

Definition at line 62 of file CouenneRecordBestSol.hpp.

◆ getListInt()

std::vector< int > Couenne::CouenneRecordBestSol::getListInt ( ) const
inline

Definition at line 63 of file CouenneRecordBestSol.hpp.

◆ setInitIsInt()

void Couenne::CouenneRecordBestSol::setInitIsInt ( const bool * givenIsInt,
const int givenCard )

◆ getInitDomLb()

CouNumber * Couenne::CouenneRecordBestSol::getInitDomLb ( ) const
inline

Definition at line 66 of file CouenneRecordBestSol.hpp.

◆ setInitDomLb()

void Couenne::CouenneRecordBestSol::setInitDomLb ( const CouNumber * givenLb,
const int givenCard )

◆ getInitDomUb()

CouNumber * Couenne::CouenneRecordBestSol::getInitDomUb ( ) const
inline

Definition at line 68 of file CouenneRecordBestSol.hpp.

◆ setInitDomUb()

void Couenne::CouenneRecordBestSol::setInitDomUb ( const CouNumber * givenUb,
const int givenCard )

◆ setHasSol()

void Couenne::CouenneRecordBestSol::setHasSol ( const bool givenHasSol)

◆ getHasSol()

bool Couenne::CouenneRecordBestSol::getHasSol ( ) const
inline

Definition at line 72 of file CouenneRecordBestSol.hpp.

◆ setSol()

void Couenne::CouenneRecordBestSol::setSol ( const double * givenSol,
const int givenCard,
const double givenMaxViol )

◆ getCardSol()

int Couenne::CouenneRecordBestSol::getCardSol ( ) const
inline

Definition at line 75 of file CouenneRecordBestSol.hpp.

◆ setCardSol()

void Couenne::CouenneRecordBestSol::setCardSol ( const int givenCard)

◆ getSol()

double * Couenne::CouenneRecordBestSol::getSol ( ) const
inline

Definition at line 77 of file CouenneRecordBestSol.hpp.

◆ getMaxViol()

double Couenne::CouenneRecordBestSol::getMaxViol ( ) const
inline

Definition at line 78 of file CouenneRecordBestSol.hpp.

◆ setVal()

void Couenne::CouenneRecordBestSol::setVal ( const double givenVal)

◆ getVal()

double Couenne::CouenneRecordBestSol::getVal ( )
inline

Definition at line 80 of file CouenneRecordBestSol.hpp.

◆ update() [1/2]

void Couenne::CouenneRecordBestSol::update ( const double * givenSol,
const int givenCard,
const double givenVal,
const double givenMaxViol )

◆ update() [2/2]

void Couenne::CouenneRecordBestSol::update ( )

◆ compareAndSave()

int Couenne::CouenneRecordBestSol::compareAndSave ( const double * solA,
const double solAVal,
const double solAMaxViol,
const bool solAIsFeas,
const double * solB,
const double solBVal,
const double solBMaxViol,
const bool solBIsFeas,
const int cardSol,
const double precision )

◆ getCardModSol()

int Couenne::CouenneRecordBestSol::getCardModSol ( ) const
inline

Definition at line 103 of file CouenneRecordBestSol.hpp.

◆ getModSol()

double * Couenne::CouenneRecordBestSol::getModSol ( const int expectedCard)

◆ getModSolVal()

double Couenne::CouenneRecordBestSol::getModSolVal ( ) const
inline

Definition at line 105 of file CouenneRecordBestSol.hpp.

◆ getModSolMaxViol()

double Couenne::CouenneRecordBestSol::getModSolMaxViol ( ) const
inline

Definition at line 106 of file CouenneRecordBestSol.hpp.

◆ setModSol()

void Couenne::CouenneRecordBestSol::setModSol ( const double * givenModSol,
const int givenModCard,
const double givenModVal,
const double givenModMaxViol )

◆ printSol()

void Couenne::CouenneRecordBestSol::printSol ( FILE * fsol) const

Member Data Documentation

◆ cardInitDom

int Couenne::CouenneRecordBestSol::cardInitDom

Definition at line 24 of file CouenneRecordBestSol.hpp.

◆ initIsInt

bool* Couenne::CouenneRecordBestSol::initIsInt

Definition at line 26 of file CouenneRecordBestSol.hpp.

◆ listInt

std::vector<int> Couenne::CouenneRecordBestSol::listInt

Definition at line 28 of file CouenneRecordBestSol.hpp.

◆ initDomLb

CouNumber* Couenne::CouenneRecordBestSol::initDomLb

Definition at line 30 of file CouenneRecordBestSol.hpp.

◆ initDomUb

CouNumber* Couenne::CouenneRecordBestSol::initDomUb

Definition at line 32 of file CouenneRecordBestSol.hpp.

◆ hasSol

bool Couenne::CouenneRecordBestSol::hasSol

Definition at line 35 of file CouenneRecordBestSol.hpp.

◆ cardSol

int Couenne::CouenneRecordBestSol::cardSol

Definition at line 37 of file CouenneRecordBestSol.hpp.

◆ sol

double* Couenne::CouenneRecordBestSol::sol

Definition at line 39 of file CouenneRecordBestSol.hpp.

◆ val

double Couenne::CouenneRecordBestSol::val

Definition at line 41 of file CouenneRecordBestSol.hpp.

◆ maxViol

double Couenne::CouenneRecordBestSol::maxViol

Definition at line 43 of file CouenneRecordBestSol.hpp.

◆ cardModSol

int Couenne::CouenneRecordBestSol::cardModSol

Definition at line 46 of file CouenneRecordBestSol.hpp.

◆ modSol

double* Couenne::CouenneRecordBestSol::modSol

Definition at line 47 of file CouenneRecordBestSol.hpp.

◆ modSolVal

double Couenne::CouenneRecordBestSol::modSolVal

Definition at line 48 of file CouenneRecordBestSol.hpp.

◆ modSolMaxViol

double Couenne::CouenneRecordBestSol::modSolMaxViol

Definition at line 49 of file CouenneRecordBestSol.hpp.


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