ABA_SLACKSTAT Class Reference

As for the structural variables the simplex method also assigns a unique status to each slack variable. A slack variable can be a basic or a nonbasic variable. More...

#include <slackstat.h>

Inheritance diagram for ABA_SLACKSTAT:

ABA_ABACUSROOT List of all members.

Public Types

enum  STATUS { Basic, NonBasicZero, NonBasicNonZero, Unknown }

Public Member Functions

 ABA_SLACKSTAT (const ABA_GLOBAL *glob)
 This constructor initializes the status as Unknown.
 ABA_SLACKSTAT (const ABA_GLOBAL *glob, STATUS status)
STATUS status () const
void status (STATUS stat)
 This version of the function status() sets the status of the slack variable.
void status (const ABA_SLACKSTAT *stat)
 This version of the function status() sets the status to the one of *stat.

Private Attributes

const ABA_GLOBALglob_
STATUS status_

Friends

ostream & operator<< (ostream &out, const ABA_SLACKSTAT &rhs)
 The output operator writes the status to an output stream in the format { Basic}, { NonBasicZero}, { Non\-Basic\-Non\-Zero}, or { Unknown}.

Detailed Description

As for the structural variables the simplex method also assigns a unique status to each slack variable. A slack variable can be a basic or a nonbasic variable.

Definition at line 50 of file slackstat.h.


Member Enumeration Documentation

enum ABA_SLACKSTAT::STATUS

The different statuses of a slack variable:

Parameters:
Basic The slack variable belongs to the basis.
NonBasicZero The slack variable does not belong to the basis and has value zero.
NonBasicNonZero The slack variable does not belong to the basis and has a nonzero value.
Unknown The status of the slack variable is not known since no linear program with the corresponding constraint has been solved.
Enumerator:
Basic 
NonBasicZero 
NonBasicNonZero 
Unknown 

Definition at line 64 of file slackstat.h.


Constructor & Destructor Documentation

ABA_SLACKSTAT::ABA_SLACKSTAT ( const ABA_GLOBAL glob  )  [inline]

This constructor initializes the status as Unknown.

Parameters:
glob A pointer to the corresponding global object.

Definition at line 137 of file slackstat.h.

ABA_SLACKSTAT::ABA_SLACKSTAT ( const ABA_GLOBAL glob,
STATUS  status 
) [inline]

A constructor with initialization.

Parameters:
glob A pointer to the corresponding global object.
status The slack variable receives the status status.

Definition at line 143 of file slackstat.h.


Member Function Documentation

ABA_SLACKSTAT::STATUS ABA_SLACKSTAT::status (  )  const [inline]

Returns:
The status of the slack variable.

Definition at line 149 of file slackstat.h.

void ABA_SLACKSTAT::status ( STATUS  stat  )  [inline]

This version of the function status() sets the status of the slack variable.

Parameters:
stat The new status of the slack variable.

Definition at line 154 of file slackstat.h.

void ABA_SLACKSTAT::status ( const ABA_SLACKSTAT stat  )  [inline]

This version of the function status() sets the status to the one of *stat.

Parameters:
stat The status of the slack variable is set to *stat.

Definition at line 159 of file slackstat.h.


Friends And Related Function Documentation

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

The output operator writes the status to an output stream in the format { Basic}, { NonBasicZero}, { Non\-Basic\-Non\-Zero}, or { Unknown}.

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


Member Data Documentation

const ABA_GLOBAL* ABA_SLACKSTAT::glob_ [private]

A pointer to the corresponding global object.

Definition at line 129 of file slackstat.h.

STATUS ABA_SLACKSTAT::status_ [private]

The status of the slack variable.

Definition at line 133 of file slackstat.h.


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