# BlisPseudocost Class Reference

`#include <BlisPseudo.h>`

List of all members.

## Public Member Functions
| BlisPseudocost ()
| Default constructor.
| BlisPseudocost (double uc, int un, double dc, int dn, double s)
| Useful constructor.
void | setWeight (double w)
| Set weigth.
void | update (const int dir, const double parentObjValue, const double objValue, const double solValue)
| Update pseudocost.
void | update (const int dir, const double objDiff, const double solValue)
| Update pseudocost.
int | getUpCount ()
| Get up branching count.
double | getUpCost ()
| Get up branching cost.
int | getDownCount ()
| Get down branching count.
double | getDownCost ()
| Get down branching cost.
double | getScore ()
| Get importance.
## Private Attributes
double | weight_
| Use to calculate score.
int | upCount_
| How many times being branched up.
double | upCost_
| Average object change when branching up.
int | downCount_
| How many times being branched down.
double | downCost_
| Average object change when branching down.
double | score_
| The estimated importance.

## Detailed Description

Definition at line 31 of file BlisPseudo.h.

## Constructor & Destructor Documentation

BlisPseudocost::BlisPseudocost | ( |  | ) | `[inline]`

Default constructor.

Definition at line 57 of file BlisPseudo.h.

BlisPseudocost::BlisPseudocost | ( | double | uc,
|  | int | un,
|  | double | dc,
|  | int | dn,
|  | double | s |
| ) |  |  | `[inline]`

Useful constructor.

Definition at line 67 of file BlisPseudo.h.

## Member Function Documentation

void BlisPseudocost::setWeight | ( | double | w | ) | `[inline]`

Set weigth.

Definition at line 82 of file BlisPseudo.h.

void BlisPseudocost::update | ( | const int | dir,
|  | const double | parentObjValue,
|  | const double | objValue,
|  | const double | solValue |
| ) |  |  |

Update pseudocost.

void BlisPseudocost::update | ( | const int | dir,
|  | const double | objDiff,
|  | const double | solValue |
| ) |  |  |

Update pseudocost.

int BlisPseudocost::getUpCount | ( |  | ) | `[inline]`

Get up branching count.

Definition at line 102 of file BlisPseudo.h.

double BlisPseudocost::getUpCost | ( |  | ) | `[inline]`

Get up branching cost.

Definition at line 105 of file BlisPseudo.h.

int BlisPseudocost::getDownCount | ( |  | ) | `[inline]`

Get down branching count.

Definition at line 108 of file BlisPseudo.h.

double BlisPseudocost::getDownCost | ( |  | ) | `[inline]`

Get down branching cost.

Definition at line 111 of file BlisPseudo.h.

double BlisPseudocost::getScore | ( |  | ) | `[inline]`

Get importance.

Definition at line 114 of file BlisPseudo.h.

## Member Data Documentation

double BlisPseudocost::weight_`[private]`

Use to calculate score.

Definition at line 35 of file BlisPseudo.h.

int BlisPseudocost::upCount_`[private]`

How many times being branched up.

Definition at line 38 of file BlisPseudo.h.

double BlisPseudocost::upCost_`[private]`

Average object change when branching up.

Definition at line 41 of file BlisPseudo.h.

int BlisPseudocost::downCount_`[private]`

How many times being branched down.

Definition at line 44 of file BlisPseudo.h.

double BlisPseudocost::downCost_`[private]`

Average object change when branching down.

Definition at line 47 of file BlisPseudo.h.

double BlisPseudocost::score_`[private]`

The estimated importance.

Score = weight * MIN(downCost_, upCost_) + (1.0 - weight) * MAX(downCost_, upCost_)

Definition at line 53 of file BlisPseudo.h.

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

- /home/coin/svn-release/Bcps-0.93.11/Bcps/examples/Blis/BlisPseudo.h