- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# CoinBaseModel Class Reference

`#include <CoinModel.hpp>`

Inheritance diagram for CoinBaseModel:

[legend]
List of all members.

## 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.

## Detailed Description

Definition at line 9 of file CoinModel.hpp.

## Constructor & Destructor Documentation

CoinBaseModel::CoinBaseModel | ( |  | ) |

Default Constructor.

CoinBaseModel::CoinBaseModel | ( | const CoinBaseModel & | rhs | ) |

Copy constructor.

virtual CoinBaseModel::~CoinBaseModel | ( |  | ) | `[virtual]`

Destructor.

## Member Function Documentation

CoinBaseModel& CoinBaseModel::operator= | ( | const CoinBaseModel & | rhs | ) |

Assignment operator.

virtual CoinBaseModel* CoinBaseModel::clone | ( |  | ) | const`[pure virtual]`

Clone.

Implemented in CoinModel, and CoinStructuredModel.

int CoinBaseModel::numberRows | ( |  | ) | const`[inline]`

Return number of rows.

Definition at line 35 of file CoinModel.hpp.

References numberRows_.

int CoinBaseModel::numberColumns | ( |  | ) | const`[inline]`

Return number of columns.

Definition at line 38 of file CoinModel.hpp.

References numberColumns_.

virtual CoinBigIndex CoinBaseModel::numberElements | ( |  | ) | const`[pure virtual]`

Return number of elements.

Implemented in CoinModel, and CoinStructuredModel.

double CoinBaseModel::objectiveOffset | ( |  | ) | const`[inline]`

Returns the (constant) objective offset This is the RHS entry for the objective row.

Definition at line 45 of file CoinModel.hpp.

References objectiveOffset_.

void CoinBaseModel::setObjectiveOffset | ( | double | value | ) | `[inline]`

Set objective offset.

Definition at line 48 of file CoinModel.hpp.

References objectiveOffset_.

double CoinBaseModel::optimizationDirection | ( |  | ) | const`[inline]`

Direction of optimization (1 - minimize, -1 - maximize, 0 - ignore.

Reimplemented in CoinModel, and CoinStructuredModel.

Definition at line 51 of file CoinModel.hpp.

References optimizationDirection_.

void CoinBaseModel::setOptimizationDirection | ( | double | value | ) | `[inline]`

Set direction of optimization (1 - minimize, -1 - maximize, 0 - ignore.

Reimplemented in CoinModel, and CoinStructuredModel.

Definition at line 55 of file CoinModel.hpp.

References optimizationDirection_.

int CoinBaseModel::logLevel | ( |  | ) | const`[inline]`

Get print level 0 - off, 1 - errors, 2 - more.

Definition at line 58 of file CoinModel.hpp.

References logLevel_.

void CoinBaseModel::setLogLevel | ( | int | value | ) |

Set print level 0 - off, 1 - errors, 2 - more.

const char* CoinBaseModel::getProblemName | ( |  | ) | const`[inline]`

Return the problem name.

Definition at line 63 of file CoinModel.hpp.

References problemName_.

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]`

Return the row block name.

Definition at line 70 of file CoinModel.hpp.

References rowBlockName_.

void CoinBaseModel::setRowBlock | ( | const std::string & | name | ) | `[inline]`

Set row block name.

Definition at line 73 of file CoinModel.hpp.

References rowBlockName_.

const std::string& CoinBaseModel::getColumnBlock | ( |  | ) | const`[inline]`

Return the column block name.

Definition at line 76 of file CoinModel.hpp.

References columnBlockName_.

void CoinBaseModel::setColumnBlock | ( | const std::string & | name | ) | `[inline]`

Set column block name.

Definition at line 79 of file CoinModel.hpp.

References columnBlockName_.

## Member Data Documentation

int CoinBaseModel::numberRows_`[protected]`

Current number of rows.

Definition at line 87 of file CoinModel.hpp.

Referenced by numberRows().

int CoinBaseModel::numberColumns_`[protected]`

Current number of columns.

Definition at line 89 of file CoinModel.hpp.

Referenced by numberColumns().

double CoinBaseModel::optimizationDirection_`[protected]`

Direction of optimization (1 - minimize, -1 - maximize, 0 - ignore.

Definition at line 91 of file CoinModel.hpp.

Referenced by CoinStructuredModel::optimizationDirection(), CoinModel::optimizationDirection(), optimizationDirection(), CoinStructuredModel::setOptimizationDirection(), CoinModel::setOptimizationDirection(), and setOptimizationDirection().

double CoinBaseModel::objectiveOffset_`[protected]`

Objective offset to be passed on.

Definition at line 93 of file CoinModel.hpp.

Referenced by objectiveOffset(), and setObjectiveOffset().

std::string CoinBaseModel::problemName_`[protected]`

Problem name.

Definition at line 95 of file CoinModel.hpp.

Referenced by getProblemName().

std::string CoinBaseModel::rowBlockName_`[protected]`

Rowblock name.

Definition at line 97 of file CoinModel.hpp.

Referenced by getRowBlock(), and setRowBlock().

std::string CoinBaseModel::columnBlockName_`[protected]`

Columnblock name.

Definition at line 99 of file CoinModel.hpp.

Referenced by getColumnBlock(), and setColumnBlock().

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 107 of file CoinModel.hpp.

Referenced by logLevel().

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

- /home/coin/SVN-release/Alps-1.2.1/CoinUtils/src/CoinModel.hpp