#include <CoinModel.hpp>
Public Member Functions | |
Constructors, destructor | |
CoinBaseModel () | |
Default Constructor. More... | |
CoinBaseModel (const CoinBaseModel &rhs) | |
Copy constructor. More... | |
CoinBaseModel & | operator= (const CoinBaseModel &rhs) |
Assignment operator. More... | |
virtual CoinBaseModel * | clone () const =0 |
Clone. More... | |
virtual | ~CoinBaseModel () |
Destructor. More... | |
For getting information | |
int | numberRows () const |
Return number of rows. More... | |
int | numberColumns () const |
Return number of columns. More... | |
virtual CoinBigIndex | numberElements () const =0 |
Return number of elements. More... | |
double | objectiveOffset () const |
Returns the (constant) objective offset This is the RHS entry for the objective row. More... | |
void | setObjectiveOffset (double value) |
Set objective offset. More... | |
double | optimizationDirection () const |
Direction of optimization (1 - minimize, -1 - maximize, 0 - ignore. More... | |
void | setOptimizationDirection (double value) |
Set direction of optimization (1 - minimize, -1 - maximize, 0 - ignore. More... | |
int | logLevel () const |
Get print level 0 - off, 1 - errors, 2 - more. More... | |
void | setLogLevel (int value) |
Set print level 0 - off, 1 - errors, 2 - more. More... | |
const char * | getProblemName () const |
Return the problem name. More... | |
void | setProblemName (const char *name) |
Set problem name. More... | |
void | setProblemName (const std::string &name) |
Set problem name. More... | |
const std::string & | getRowBlock () const |
Return the row block name. More... | |
void | setRowBlock (const std::string &name) |
Set row block name. More... | |
const std::string & | getColumnBlock () const |
Return the column block name. More... | |
void | setColumnBlock (const std::string &name) |
Set column block name. More... | |
Protected Attributes | |
Data members | |
int | numberRows_ |
Current number of rows. More... | |
int | numberColumns_ |
Current number of columns. More... | |
double | optimizationDirection_ |
Direction of optimization (1 - minimize, -1 - maximize, 0 - ignore. More... | |
double | objectiveOffset_ |
Objective offset to be passed on. More... | |
std::string | problemName_ |
Problem name. More... | |
std::string | rowBlockName_ |
Rowblock name. More... | |
std::string | columnBlockName_ |
Columnblock name. More... | |
int | logLevel_ |
Print level. More... | |
Definition at line 9 of file CoinModel.hpp.
CoinBaseModel::CoinBaseModel | ( | ) |
Default Constructor.
CoinBaseModel::CoinBaseModel | ( | const CoinBaseModel & | rhs) |
Copy constructor.
|
virtual |
Destructor.
CoinBaseModel& CoinBaseModel::operator= | ( | const CoinBaseModel & | rhs) |
Assignment operator.
|
pure virtual |
Clone.
Implemented in CoinModel, and CoinStructuredModel.
|
inline |
Return number of rows.
Definition at line 35 of file CoinModel.hpp.
|
inline |
Return number of columns.
Definition at line 38 of file CoinModel.hpp.
|
pure virtual |
Return number of elements.
Implemented in CoinModel, and CoinStructuredModel.
|
inline |
Returns the (constant) objective offset This is the RHS entry for the objective row.
Definition at line 45 of file CoinModel.hpp.
|
inline |
Set objective offset.
Definition at line 48 of file CoinModel.hpp.
|
inline |
Direction of optimization (1 - minimize, -1 - maximize, 0 - ignore.
Definition at line 51 of file CoinModel.hpp.
|
inline |
Set direction of optimization (1 - minimize, -1 - maximize, 0 - ignore.
Definition at line 55 of file CoinModel.hpp.
|
inline |
Get print level 0 - off, 1 - errors, 2 - more.
Definition at line 58 of file CoinModel.hpp.
void CoinBaseModel::setLogLevel | ( | int | value) |
Set print level 0 - off, 1 - errors, 2 - more.
|
inline |
Return the problem name.
Definition at line 63 of file CoinModel.hpp.
void CoinBaseModel::setProblemName | ( | const char * | name) |
Set problem name.
void CoinBaseModel::setProblemName | ( | const std::string & | name) |
Set problem name.
|
inline |
Return the row block name.
Definition at line 70 of file CoinModel.hpp.
|
inline |
Set row block name.
Definition at line 73 of file CoinModel.hpp.
|
inline |
Return the column block name.
Definition at line 76 of file CoinModel.hpp.
|
inline |
Set column block name.
Definition at line 79 of file CoinModel.hpp.
|
protected |
Current number of rows.
Definition at line 87 of file CoinModel.hpp.
|
protected |
Current number of columns.
Definition at line 89 of file CoinModel.hpp.
|
protected |
Direction of optimization (1 - minimize, -1 - maximize, 0 - ignore.
Definition at line 91 of file CoinModel.hpp.
|
protected |
Objective offset to be passed on.
Definition at line 93 of file CoinModel.hpp.
|
protected |
Problem name.
Definition at line 95 of file CoinModel.hpp.
|
protected |
Rowblock name.
Definition at line 97 of file CoinModel.hpp.
|
protected |
Columnblock name.
Definition at line 99 of file CoinModel.hpp.
|
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 107 of file CoinModel.hpp.