ABA_VALBRANCHRULE Class Reference

class implements a branching rule for setting a variable to a certain value. More...

#include <valbranchrule.h>

Inheritance diagram for ABA_VALBRANCHRULE:

ABA_BRANCHRULE ABA_ABACUSROOT List of all members.

Public Member Functions

 ABA_VALBRANCHRULE (ABA_MASTER *master, int variable, double value)
virtual ~ABA_VALBRANCHRULE ()
 The destructor.
virtual int extract (ABA_SUB *sub)
virtual void extract (ABA_LPSUB *lp)
 The function extract() is overloaded to modify directly the linear programming relaxation. This required to evaluate the quality of a branching rule.
virtual void unExtract (ABA_LPSUB *lp)
 The function unExtract().
int variable () const
double value () const

Private Attributes

int variable_
double value_
double oldLpLBound_
double oldLpUBound_

Friends

ostream & operator<< (ostream &out, const ABA_VALBRANCHRULE &rhs)
 The output operator writes the branching variable together with its value to an output stream.

Detailed Description

class implements a branching rule for setting a variable to a certain value.

Parameters:
int variable_ The branching variable.
double value_ The value the branching variable is set to.

Definition at line 42 of file valbranchrule.h.


Constructor & Destructor Documentation

ABA_VALBRANCHRULE::ABA_VALBRANCHRULE ( ABA_MASTER master,
int  variable,
double  value 
)

The constructor.

Parameters:
master The corresponding master of the optimization.
variable The branching variable.
value The value the branching variable is set to.

virtual ABA_VALBRANCHRULE::~ABA_VALBRANCHRULE (  )  [virtual]

The destructor.


Member Function Documentation

virtual int ABA_VALBRANCHRULE::extract ( ABA_SUB sub  )  [virtual]

Modifies a subproblem by setting the branching variable.

Returns:
0 If the subproblem can be modified according to the branching rule.

1 If a contradiction occurs.

Parameters:
sub The subproblem being modified.

Implements ABA_BRANCHRULE.

virtual void ABA_VALBRANCHRULE::extract ( ABA_LPSUB lp  )  [virtual]

The function extract() 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_VALBRANCHRULE::unExtract ( ABA_LPSUB lp  )  [virtual]

The function unExtract().

Reimplemented from ABA_BRANCHRULE.

int ABA_VALBRANCHRULE::variable (  )  const [inline]

Returns:
The number of the branching variable.

Definition at line 131 of file valbranchrule.h.

double ABA_VALBRANCHRULE::value (  )  const [inline]

Returns:
The value of the branching variable.

Definition at line 136 of file valbranchrule.h.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  out,
const ABA_VALBRANCHRULE rhs 
) [friend]

The output operator writes the branching variable together with its value to an output stream.

Returns:
A reference to the output stream.
Parameters:
out The output stream.
rhs The branching rule being output.


Member Data Documentation

int ABA_VALBRANCHRULE::variable_ [private]

Definition at line 124 of file valbranchrule.h.

double ABA_VALBRANCHRULE::value_ [private]

Definition at line 125 of file valbranchrule.h.

double ABA_VALBRANCHRULE::oldLpLBound_ [private]

Definition at line 126 of file valbranchrule.h.

double ABA_VALBRANCHRULE::oldLpUBound_ [private]

Definition at line 127 of file valbranchrule.h.


The documentation for this class was generated from the following file:
Generated on Tue Aug 14 18:10:00 2007 for ABACUS by  doxygen 1.5.1