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

#include <slackstat.h>

Inheritance diagram for ABA_SLACKSTAT::


PIC


Public Types

Public Member Functions

Private Attributes

Friends

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

6.17.2 Member Enumeration Documentation

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

6.17.3 Constructor & Destructor Documentation

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

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

6.17.4 Member Function Documentation

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

Returns:

The status of the slack variable.

Definition at line 149 of file slackstat.h.

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

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

6.17.5 Friends And Related Function Documentation

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

6.17.6 Member Data Documentation

6.17.6.1 const ABA_GLOBAL*ABA_SLACKSTAT::glob_ [private]

A pointer to the corresponding global object.

Definition at line 129 of file slackstat.h.

6.17.6.2 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: