Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

WDN Class Reference

#include <WDN.h>

Inheritance diagram for WDN:
Inheritance graph
[legend]
Collaboration diagram for WDN:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 initialize (simInputFileName, simOutputFileName)
void simulate (int *xnom, int nnom)
bool isParallelExp ()
vector< double > * getF ()
void getNadirIdeal (vector< double > &nadir, vector< double > &ideal, int numVar)
virtual ~WDN ()

Public Attributes

 cvDemand = cvDemand_
 cvRoughness = cvRoughness_

Protected Member Functions

void initialize (string simInputFileName, string simOutputFileName)
 Initialize EPANET simulator.
void simulate (Individual *I, int *xnom, int numVar, double *noise)
double f1 (Individual *I, int *xnom)
 f1: Investment Cost -> min
double f2 (vector< float > &pressure)
 f2: Weighted Demand Supply Ratio -> MAX
double f3 (vector< float > &flow)
 f3: System Entropy -> MAX
int * getNumNoiseNorm ()
 Demands of n nodes.
int * getNumNoiseUnif ()
 Roughness of m pipes.
void close ()
 Shutdown EPANET simulator.

Protected Attributes

vector< double > F
Network network
DiameterTable diameterTable
float pressureZero
float pressureReq
float convDiamSize
 Unit conversion constant for diameter size.
bool parallelExp
 Indicates parallel expansion problem, introducing zero diameter, and compensating for existing pipes.
double cvDemand
 Coefficient of variation for demands.
double cvRoughness
 Coefficient of variation for Hazen-Williams roughness coefficients.

Detailed Description

Definition at line 60 of file WDN.h.


Constructor & Destructor Documentation

virtual WDN::~WDN (  ) [inline, virtual]

Definition at line 90 of file WDN.h.


Member Function Documentation

void WDN::close (  ) [protected]

Shutdown EPANET simulator.

Definition at line 349 of file WDN.cpp.

double WDN::f1 ( Individual I,
int *  xnom 
) [protected]

f1: Investment Cost -> min

Definition at line 237 of file WDN.cpp.

double WDN::f2 ( vector< float > &  pressure ) [protected]

f2: Weighted Demand Supply Ratio -> MAX

Definition at line 252 of file WDN.cpp.

double WDN::f3 ( vector< float > &  flow ) [protected]

f3: System Entropy -> MAX

Definition at line 283 of file WDN.cpp.

vector<double>* WDN::getF (  ) [inline]

Definition at line 86 of file WDN.h.

void WDN::getNadirIdeal ( vector< double > &  nadir,
vector< double > &  ideal,
int  numVar 
)

Definition at line 23 of file WDN.cpp.

int* WDN::getNumNoiseNorm (  ) [inline, protected]

Demands of n nodes.

Definition at line 127 of file WDN.h.

int* WDN::getNumNoiseUnif (  ) [inline, protected]

Roughness of m pipes.

Definition at line 130 of file WDN.h.

WDN::initialize ( simInputFileName  ,
simOutputFileName   
)
void WDN::initialize ( string  simInputFileName,
string  simOutputFileName 
) [protected]

Initialize EPANET simulator.

Definition at line 53 of file WDN.cpp.

bool WDN::isParallelExp (  ) [inline]

Definition at line 84 of file WDN.h.

void WDN::simulate ( Individual I,
int *  xnom,
int  numVar,
double *  noise 
) [protected]

Definition at line 155 of file WDN.cpp.

void WDN::simulate ( int *  xnom,
int  nnom 
) [inline]

Definition at line 82 of file WDN.h.


Member Data Documentation

float WDN::convDiamSize [protected]

Unit conversion constant for diameter size.

Definition at line 98 of file WDN.h.

WDN::cvDemand = cvDemand_

Definition at line 77 of file WDN.h.

double WDN::cvDemand [protected]

Coefficient of variation for demands.

Definition at line 108 of file WDN.h.

WDN::cvRoughness = cvRoughness_

Definition at line 78 of file WDN.h.

double WDN::cvRoughness [protected]

Coefficient of variation for Hazen-Williams roughness coefficients.

Definition at line 108 of file WDN.h.

Definition at line 96 of file WDN.h.

vector<double> WDN::F [protected]

Definition at line 93 of file WDN.h.

Network WDN::network [protected]

Definition at line 95 of file WDN.h.

bool WDN::parallelExp [protected]

Indicates parallel expansion problem, introducing zero diameter, and compensating for existing pipes.

Definition at line 105 of file WDN.h.

float WDN::pressureReq [protected]

Definition at line 98 of file WDN.h.

float WDN::pressureZero [protected]

Definition at line 98 of file WDN.h.


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