RapidNet
Fast Stochastic MPC for Drinking Water Networks
|
Public Member Functions | |
DwnNetwork (string pathToFile) | |
uint_t | getNumTanks () |
uint_t | getNumControls () |
uint_t | getNumDemands () |
uint_t | getNumMixNodes () |
real_t * | getMatA () |
real_t * | getMatB () |
real_t * | getMatGd () |
real_t * | getMatE () |
real_t * | getMatEd () |
real_t * | getXmin () |
real_t * | getXmax () |
real_t * | getXsafe () |
real_t * | getUmin () |
real_t * | getUmax () |
real_t * | getAlpha () |
~DwnNetwork () | |
Drinking water network consists of tanks, valves, pumps and distribution points. The network manager should transport the water from the storage tanks to the demand/distribution points via series of pumps and valves. This dynamics of the water network can be represented with a mass-conservation equation. All physical components in the network should be operated in their physical limits given as constraints on the system. The DwnNetwork class represent the the drinking water model. This class includes
DwnNetwork::DwnNetwork | ( | string | pathToFile | ) |
Constructor of a DWN entity from a given JSON file.
pathToFile | filename of a JSON file containing a representation of the DWN. |
DwnNetwork::~DwnNetwork | ( | ) |
Destructor of the DWN entity that removes it from the CPU
real_t * DwnNetwork::getAlpha | ( | ) |
Return the pointer to the production/treatment costs
real_t * DwnNetwork::getMatA | ( | ) |
Return the pointer to the matrix A
real_t * DwnNetwork::getMatB | ( | ) |
Return the pointer to the matrix B
real_t * DwnNetwork::getMatE | ( | ) |
Return the pointer to matrix E
real_t * DwnNetwork::getMatEd | ( | ) |
Return the pointer to matrix Ed
real_t * DwnNetwork::getMatGd | ( | ) |
Return the pointer to the matrix Gd
uint_t DwnNetwork::getNumControls | ( | ) |
Return the number of pumps and valves
uint_t DwnNetwork::getNumDemands | ( | ) |
Return the number of demands
uint_t DwnNetwork::getNumMixNodes | ( | ) |
Return the number of mix nodes
uint_t DwnNetwork::getNumTanks | ( | ) |
Return the number of tanks
real_t * DwnNetwork::getUmax | ( | ) |
Return the pointer to the maximum control level
real_t * DwnNetwork::getUmin | ( | ) |
Return the pointer to the minimum control level
real_t * DwnNetwork::getXmax | ( | ) |
Return the pointer to the maximum volume of the tanks
real_t * DwnNetwork::getXmin | ( | ) |
Return the pointer to minimum volume of the tanks
real_t * DwnNetwork::getXsafe | ( | ) |
Return the pointer to the safety level of the tanks