#include <boundbranchrule.h>
Inheritance diagram for ABA_BOUNDBRANCHRULE:

Public Member Functions | |
| ABA_BOUNDBRANCHRULE (ABA_MASTER *master, int variable, double lBound, double uBound) | |
| virtual | ~ABA_BOUNDBRANCHRULE () |
| virtual int | extract (ABA_SUB *sub) |
| Modifies a subproblem by changing the lower and the upper bound of the branching variable. | |
| virtual void | extract (ABA_LPSUB *lp) |
| Is overloaded to modify directly the linear programming relaxation. | |
| virtual void | unExtract (ABA_LPSUB *lp) |
| int | variable () const |
| double | lBound () const |
| double | uBound () const |
Private Attributes | |
| int | variable_ |
| double | lBound_ |
| double | uBound_ |
| double | oldLpLBound_ |
| double | oldLpUBound_ |
Friends | |
| ostream & | operator<< (ostream &out, const ABA_BOUNDBRANCHRULE &rhs) |
| The output operator writes the branching variable together with its lower and upper bound to an output stream. | |
| int | variable_ The branching variable. | |
| double | lBound_ The lower bound of the branching variable. | |
| double | uBound_ The upper bound of the branching variable. |
Definition at line 40 of file boundbranchrule.h.
| ABA_BOUNDBRANCHRULE::ABA_BOUNDBRANCHRULE | ( | ABA_MASTER * | master, | |
| int | variable, | |||
| double | lBound, | |||
| double | uBound | |||
| ) |
The constructor.
| master | A pointer to the corresponding master of the optimization. | |
| variable | The branching variable. | |
| lBound | The lower bound of the branching variable. | |
| uBound | The upper bound of the branching variable. |
| virtual ABA_BOUNDBRANCHRULE::~ABA_BOUNDBRANCHRULE | ( | ) | [virtual] |
The destructor.
| virtual int ABA_BOUNDBRANCHRULE::extract | ( | ABA_SUB * | sub | ) | [virtual] |
Modifies a subproblem by changing the lower and the upper bound of the branching variable.
1 If the modification causes a contradiction.
| sub | The subproblem being modified. |
Implements ABA_BRANCHRULE.
| virtual void ABA_BOUNDBRANCHRULE::extract | ( | ABA_LPSUB * | lp | ) | [virtual] |
Is overloaded to modify directly the linear programming relaxation.
This required to evaluate the quality of a branching rule.
Reimplemented from ABA_BRANCHRULE.
| virtual void ABA_BOUNDBRANCHRULE::unExtract | ( | ABA_LPSUB * | lp | ) | [virtual] |
Should undo the modifictions of the linear programming relaxtion |lp|.
This function has to be redefined in a derived class, if also extract(ABA_LPSUB*) is redefined there.
| lp | A pointer to a the linear programming relaxtion of a a subproblem. |
Reimplemented from ABA_BRANCHRULE.
| int ABA_BOUNDBRANCHRULE::variable | ( | ) | const [inline] |
| double ABA_BOUNDBRANCHRULE::lBound | ( | ) | const [inline] |
Definition at line 139 of file boundbranchrule.h.
| double ABA_BOUNDBRANCHRULE::uBound | ( | ) | const [inline] |
Definition at line 144 of file boundbranchrule.h.
| ostream& operator<< | ( | ostream & | out, | |
| const ABA_BOUNDBRANCHRULE & | rhs | |||
| ) | [friend] |
The output operator writes the branching variable together with its lower and upper bound to an output stream.
| out | The output stream. | |
| rhs | The branch rule being output. |
int ABA_BOUNDBRANCHRULE::variable_ [private] |
Definition at line 126 of file boundbranchrule.h.
double ABA_BOUNDBRANCHRULE::lBound_ [private] |
Definition at line 127 of file boundbranchrule.h.
double ABA_BOUNDBRANCHRULE::uBound_ [private] |
Definition at line 128 of file boundbranchrule.h.
double ABA_BOUNDBRANCHRULE::oldLpLBound_ [private] |
Definition at line 129 of file boundbranchrule.h.
double ABA_BOUNDBRANCHRULE::oldLpUBound_ [private] |
Definition at line 130 of file boundbranchrule.h.
1.5.1