4.1 Basics

The inheritance graph of any set of classes in C++ must be a directed acyclic graph. Very often these inheritance graphs form forests or trees. Also the inheritance graph of ABACUS is designed as a tree with a single exception where we use multiple inheritance.

The following sections and Table 4.1 give a survey of the different classes of ABACUS. The details are outlined in Section 4.2.





ABACUS



Pure Kernel Application Base Auxiliaries
Linear Program Master Basic Data Structures
Pool Subproblem Tools
Branch & Bound Constraints
Variables




Table 4.1: The classes of ABACUS.

Basically the classes of ABACUS can be divided in three different main groups. The application base classes are the most important ones for the user. From these classes the user of the framework has to derive the classes for his applications. The pure kernel classes are usually invisible for the user. To this group belong, e.g., classes for supporting the branch-and-bound algorithm, for the solution of linear programs, and for the management of constraints and variables. Finally, there are the auxiliaries, i.e., classes providing basic data structures and tools, which can optionally be used for the implementation of an application.

4.1.1 Application Base Classes

The following classes are usually involved in the derivation process for the implementation of a new application.

4.1.1.1 The Master

The class ABA_MASTER is one of the central classes of the framework. It controls the optimization process and stores global data structures for the optimization. For each new application a class has to be derived from the class ABA_MASTER.

4.1.1.2 The Subproblem

The class ABA_SUB represents a subproblem of the implicit enumeration, i.e., a node of the branch-and-bound tree. The subproblem optimization is performed by the solution of linear programming relaxations. Usually, most running time is spent within the member functions of this class. Also from the class ABA_SUB a new class has to be derived for each new application. By redefining virtual functions in the derived class problem specific algorithms as, e.g., cutting plane or column generation, can be embedded.

4.1.1.3 The Constraints and Variables

ABACUS provides some default concepts for the representation of constraints and variables. However, it still might be necessary that for a new application special classes have to be derived from the classes ABA_CONSTRAINT and ABA_VARIABLE, which then implement application specific methods and storage formats.

4.1.2 Pure Kernel Classes

This group covers classes that are required for the implementation of the kernel of ABACUS but usually of no direct importance for the user of the framework.

4.1.2.1 The Root of the Class Tree

All classes of ABACUS have the common base class ABA_ABACUSROOT.

4.1.2.2 The Linear Program

The part of the inheritance graph related to the solution of linear programs contains several classes. There is a general interface to the linear program from which a class for the solution of linear programming relaxations within our branch-and-bound algorithm is derived. Both classes are independent from the used LP-solver, which can be plugged in via a separate class. Currently, we support the LP-solvers supported by the Open Solver Interface (Osi). In theory all these solvers can be used to solve the LP relaxations. We have tested ABACUS with CPLEX, Clp and Glpk.

4.1.2.3 The Pool

Constraints and variables are stored in pools. We provide an abstract base class for the representation of pools and derive from this class a standard realization of a pool. Several other classes are required for a safe management of active and inactive constraints and variables.

4.1.2.4 The Branch-and-Bound Auxiliary Classes

Various classes are required to support the linear-programming based branch-and-bound algorithm, e.g., for the management of the branch-and-bound tree, for the storage of the active and inactive constraints, special buffers for newly generated constraints and variables, for the control of the tailing off effect, and for fixing variables by reduced costs. An important part of the inheritance graph in this context is formed by the various branching rules, which allow a very flexible implementation of branching strategies.

4.1.3 Auxiliaries

We use the following classes for the implementation of other classes within ABACUS, but they might also be useful for the implementation of new applications.

4.1.3.1 The Basic Data Structures

ABACUS is complemented by a set of basic data structures. Most of them are implemented as generic classes (templates).

4.1.3.2 The Tools

Finally, we also provide some useful tools, e.g., for generating output, measuring time, and sorting.