6.27 ABA_VALBRANCHRULE Class Reference

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

#include <valbranchrule.h>

Inheritance diagram for ABA_VALBRANCHRULE::


PIC


Public Member Functions

Private Attributes

Friends

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

6.27.2 Constructor & Destructor Documentation

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

6.27.2.2 virtual ABA_VALBRANCHRULE::~ABA_VALBRANCHRULE () [virtual]

The destructor.

6.27.3 Member Function Documentation

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

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

6.27.3.3 virtual void ABA_VALBRANCHRULE::unExtract (ABA_LPSUB * lp) [virtual]

The function unExtract().

Reimplemented from ABA_BRANCHRULE.

6.27.3.4 int ABA_VALBRANCHRULE::variable () const [inline]

Returns:

The number of the branching variable.

Definition at line 131 of file valbranchrule.h.

6.27.3.5 double ABA_VALBRANCHRULE::value () const [inline]

Returns:

The value of the branching variable.

Definition at line 136 of file valbranchrule.h.

6.27.4 Friends And Related Function Documentation

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

6.27.5 Member Data Documentation

6.27.5.1 int ABA_VALBRANCHRULE::variable_ [private]

Definition at line 124 of file valbranchrule.h.

6.27.5.2 double ABA_VALBRANCHRULE::value_ [private]

Definition at line 125 of file valbranchrule.h.

6.27.5.3 double ABA_VALBRANCHRULE::oldLpLBound_ [private]

Definition at line 126 of file valbranchrule.h.

6.27.5.4 double ABA_VALBRANCHRULE::oldLpUBound_ [private]

Definition at line 127 of file valbranchrule.h.

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