#include <CoinModel.hpp>
Public Member Functions | |
Constructors, destructor | |
CoinBaseModel () | |
Default Constructor. | |
CoinBaseModel (const CoinBaseModel &rhs) | |
Copy constructor. | |
CoinBaseModel & | operator= (const CoinBaseModel &rhs) |
Assignment operator. | |
virtual CoinBaseModel * | clone () const =0 |
Clone. | |
virtual | ~CoinBaseModel () |
Destructor. | |
For getting information | |
int | numberRows () const |
Return number of rows. | |
int | numberColumns () const |
Return number of columns. | |
virtual CoinBigIndex | numberElements () const =0 |
Return number of elements. | |
double | objectiveOffset () const |
Returns the (constant) objective offset This is the RHS entry for the objective row. | |
void | setObjectiveOffset (double value) |
Set objective offset. | |
double | optimizationDirection () const |
Direction of optimization (1 - minimize, -1 - maximize, 0 - ignore. | |
void | setOptimizationDirection (double value) |
Set direction of optimization (1 - minimize, -1 - maximize, 0 - ignore. | |
int | logLevel () const |
Get print level 0 - off, 1 - errors, 2 - more. | |
void | setLogLevel (int value) |
Set print level 0 - off, 1 - errors, 2 - more. | |
const char * | getProblemName () const |
Return the problem name. | |
void | setProblemName (const char *name) |
Set problem name. | |
void | setProblemName (const std::string &name) |
Set problem name. | |
const std::string & | getRowBlock () const |
Return the row block name. | |
void | setRowBlock (const std::string &name) |
Set row block name. | |
const std::string & | getColumnBlock () const |
Return the column block name. | |
void | setColumnBlock (const std::string &name) |
Set column block name. | |
Protected Attributes | |
Data members | |
int | numberRows_ |
Current number of rows. | |
int | numberColumns_ |
Current number of columns. | |
double | optimizationDirection_ |
Direction of optimization (1 - minimize, -1 - maximize, 0 - ignore. | |
double | objectiveOffset_ |
Objective offset to be passed on. | |
std::string | problemName_ |
Problem name. | |
std::string | rowBlockName_ |
Rowblock name. | |
std::string | columnBlockName_ |
Columnblock name. | |
int | logLevel_ |
Print level. |
Definition at line 8 of file CoinModel.hpp.
CoinBaseModel::CoinBaseModel | ( | ) |
Default Constructor.
CoinBaseModel::CoinBaseModel | ( | const CoinBaseModel & | rhs | ) |
Copy constructor.
virtual CoinBaseModel::~CoinBaseModel | ( | ) | [virtual] |
Destructor.
CoinBaseModel& CoinBaseModel::operator= | ( | const CoinBaseModel & | rhs | ) |
Assignment operator.
virtual CoinBaseModel* CoinBaseModel::clone | ( | ) | const [pure virtual] |
int CoinBaseModel::numberRows | ( | ) | const [inline] |
int CoinBaseModel::numberColumns | ( | ) | const [inline] |
virtual CoinBigIndex CoinBaseModel::numberElements | ( | ) | const [pure virtual] |
double CoinBaseModel::objectiveOffset | ( | ) | const [inline] |
Returns the (constant) objective offset This is the RHS entry for the objective row.
Definition at line 44 of file CoinModel.hpp.
void CoinBaseModel::setObjectiveOffset | ( | double | value | ) | [inline] |
double CoinBaseModel::optimizationDirection | ( | ) | const [inline] |
Direction of optimization (1 - minimize, -1 - maximize, 0 - ignore.
Reimplemented in CoinModel, and CoinStructuredModel.
Definition at line 50 of file CoinModel.hpp.
void CoinBaseModel::setOptimizationDirection | ( | double | value | ) | [inline] |
Set direction of optimization (1 - minimize, -1 - maximize, 0 - ignore.
Reimplemented in CoinModel, and CoinStructuredModel.
Definition at line 54 of file CoinModel.hpp.
int CoinBaseModel::logLevel | ( | ) | const [inline] |
void CoinBaseModel::setLogLevel | ( | int | value | ) |
Set print level 0 - off, 1 - errors, 2 - more.
const char* CoinBaseModel::getProblemName | ( | ) | const [inline] |
void CoinBaseModel::setProblemName | ( | const char * | name | ) |
Set problem name.
void CoinBaseModel::setProblemName | ( | const std::string & | name | ) |
Set problem name.
const std::string& CoinBaseModel::getRowBlock | ( | ) | const [inline] |
void CoinBaseModel::setRowBlock | ( | const std::string & | name | ) | [inline] |
const std::string& CoinBaseModel::getColumnBlock | ( | ) | const [inline] |
void CoinBaseModel::setColumnBlock | ( | const std::string & | name | ) | [inline] |
int CoinBaseModel::numberRows_ [protected] |
int CoinBaseModel::numberColumns_ [protected] |
double CoinBaseModel::optimizationDirection_ [protected] |
Direction of optimization (1 - minimize, -1 - maximize, 0 - ignore.
Definition at line 90 of file CoinModel.hpp.
double CoinBaseModel::objectiveOffset_ [protected] |
std::string CoinBaseModel::problemName_ [protected] |
std::string CoinBaseModel::rowBlockName_ [protected] |
std::string CoinBaseModel::columnBlockName_ [protected] |
int CoinBaseModel::logLevel_ [protected] |
Print level.
I could have gone for full message handling but this should normally be silent and lightweight. I can always change. 0 - no output 1 - on errors 2 - more detailed
Definition at line 106 of file CoinModel.hpp.