Dip
0.92.4
|
This class is the placeholder for the pseudocosts used by OsiChooseStrong. More...
#include <OsiChooseVariable.hpp>
Public Member Functions | |
OsiPseudoCosts () | |
virtual | ~OsiPseudoCosts () |
OsiPseudoCosts (const OsiPseudoCosts &rhs) | |
OsiPseudoCosts & | operator= (const OsiPseudoCosts &rhs) |
int | numberBeforeTrusted () const |
Number of times before trusted. More... | |
void | setNumberBeforeTrusted (int value) |
Set number of times before trusted. More... | |
void | initialize (int n) |
Initialize the pseudocosts with n entries. More... | |
int | numberObjects () const |
Give the number of objects for which pseudo costs are stored. More... | |
virtual void | updateInformation (const OsiBranchingInformation *info, int branch, OsiHotInfo *hotInfo) |
Given a candidate fill in useful information e.g. estimates. More... | |
virtual void | updateInformation (int whichObject, int branch, double changeInObjective, double changeInValue, int status) |
Given a branch fill in useful information e.g. estimates. More... | |
Accessor methods to pseudo costs data | |
double * | upTotalChange () |
const double * | upTotalChange () const |
double * | downTotalChange () |
const double * | downTotalChange () const |
int * | upNumber () |
const int * | upNumber () const |
int * | downNumber () |
const int * | downNumber () const |
Protected Attributes | |
double * | upTotalChange_ |
Total of all changes up. More... | |
double * | downTotalChange_ |
Total of all changes down. More... | |
int * | upNumber_ |
Number of times up. More... | |
int * | downNumber_ |
Number of times down. More... | |
int | numberObjects_ |
Number of objects (could be found from solver) More... | |
int | numberBeforeTrusted_ |
Number before we trust. More... | |
Private Member Functions | |
void | gutsOfDelete () |
void | gutsOfCopy (const OsiPseudoCosts &rhs) |
This class is the placeholder for the pseudocosts used by OsiChooseStrong.
It can also be used by any other pseudocost based strong branching algorithm.
Definition at line 290 of file OsiChooseVariable.hpp.
OsiPseudoCosts::OsiPseudoCosts | ( | ) |
|
virtual |
OsiPseudoCosts::OsiPseudoCosts | ( | const OsiPseudoCosts & | rhs | ) |
|
private |
|
private |
OsiPseudoCosts& OsiPseudoCosts::operator= | ( | const OsiPseudoCosts & | rhs | ) |
|
inline |
Number of times before trusted.
Definition at line 317 of file OsiChooseVariable.hpp.
References numberBeforeTrusted_.
Referenced by OsiChooseStrong::numberBeforeTrusted().
|
inline |
Set number of times before trusted.
Definition at line 322 of file OsiChooseVariable.hpp.
References numberBeforeTrusted_.
Referenced by OsiChooseStrong::setNumberBeforeTrusted().
void OsiPseudoCosts::initialize | ( | int | n | ) |
Initialize the pseudocosts with n entries.
|
inline |
Give the number of objects for which pseudo costs are stored.
Definition at line 329 of file OsiChooseVariable.hpp.
References numberObjects_.
Referenced by OsiChooseStrong::numberObjects().
|
inline |
Definition at line 336 of file OsiChooseVariable.hpp.
References upTotalChange_.
|
inline |
Definition at line 337 of file OsiChooseVariable.hpp.
References upTotalChange_.
|
inline |
Definition at line 339 of file OsiChooseVariable.hpp.
References downTotalChange_.
|
inline |
Definition at line 340 of file OsiChooseVariable.hpp.
References downTotalChange_.
|
inline |
Definition at line 342 of file OsiChooseVariable.hpp.
References upNumber_.
|
inline |
Definition at line 343 of file OsiChooseVariable.hpp.
References upNumber_.
|
inline |
Definition at line 345 of file OsiChooseVariable.hpp.
References downNumber_.
|
inline |
Definition at line 346 of file OsiChooseVariable.hpp.
References downNumber_.
|
virtual |
Given a candidate fill in useful information e.g. estimates.
|
virtual |
Given a branch fill in useful information e.g. estimates.
|
protected |
Total of all changes up.
Definition at line 294 of file OsiChooseVariable.hpp.
Referenced by upTotalChange().
|
protected |
Total of all changes down.
Definition at line 296 of file OsiChooseVariable.hpp.
Referenced by downTotalChange().
|
protected |
|
protected |
Number of times down.
Definition at line 300 of file OsiChooseVariable.hpp.
Referenced by downNumber().
|
protected |
Number of objects (could be found from solver)
Definition at line 302 of file OsiChooseVariable.hpp.
Referenced by numberObjects().
|
protected |
Number before we trust.
Definition at line 304 of file OsiChooseVariable.hpp.
Referenced by numberBeforeTrusted(), and setNumberBeforeTrusted().