Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

BAPPackage.cpp File Reference


Detailed Description

Implements the package class.

Author:
David Ong Tat Wee
Version:
v1.02b
Date:
14 May 99
Copyright:
Copyright (C) 1998, 1999, 2000
All rights reserved by
The RAS Group, Algorithms Lab
School of Computing
National University of Singapore
This class interfaces the algorithm functions with the BAP domain classes. It has to encapsulate all necessary information for solving the problem, based on our problem model:

Changes:
14 May 99
Add ReadSolution() and WriteSolution() methods
Add mSolutionExists, mObjectiveValue and mPenalty attributes
Add VerifySolution() method

Definition in file BAPPackage.cpp.

#include "BAPPackage.h"

Include dependency graph for BAPPackage.cpp:

Go to the source code of this file.

Functions

istream & operator>> (istream &aIS, Indicators &aI)
ostream & operator<< (ostream &aOS, const Indicators &aI)


Function Documentation

ostream& operator<< ostream &  aOS,
const Indicators aI
 

Definition at line 79 of file BAPPackage.cpp.

References Indicators::ABD, Indicators::Density, and Indicators::TranshipmentCost.

00080 {
00081    aOS << "(" << aI.TranshipmentCost << ", "
00082               << aI.Density << ", " << aI.ABD << ")";
00083    return aOS;
00084 }

istream& operator>> istream &  aIS,
Indicators aI
 

Definition at line 73 of file BAPPackage.cpp.

References Indicators::ABD, Indicators::Density, and Indicators::TranshipmentCost.

00074 {
00075    aIS >> aI.TranshipmentCost >> aI.Density >> aI.ABD;
00076    return aIS;
00077 }


Generated on Thu Sep 29 21:26:23 2005 for BAPS by  doxygen 1.4.4