#include <WDN.h>
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 |
|
) |
| |
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] |
void WDN::simulate |
( |
int * |
xnom, |
|
|
int |
nnom |
|
) |
| [inline] |
Definition at line 82 of file WDN.h.
Member Data Documentation
Unit conversion constant for diameter size.
Definition at line 98 of file WDN.h.
Definition at line 77 of file WDN.h.
Coefficient of variation for demands.
Definition at line 108 of file WDN.h.
Definition at line 78 of file WDN.h.
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.
Definition at line 95 of file WDN.h.
Indicates parallel expansion problem, introducing zero diameter, and compensating for existing pipes.
Definition at line 105 of file WDN.h.
Definition at line 98 of file WDN.h.
Definition at line 98 of file WDN.h.
The documentation for this class was generated from the following files: