Variables

The following methods provide a compositional approach for defining common variables used in water network optimization models. These methods are always defined over AbstractWaterModel.

WaterModels.variable_des_pipe_indicatorMethod

Creates binary variables for all design pipes in the network, i.e., z_des_pipe[a] for a in des_pipe, where one denotes that the pipe is selected within the design, and zero denotes that the pipe is not selected.

source
WaterModels.variable_headMethod

Creates bounded (by default) or unbounded total hydraulic head (or head) variables for all nodes in the network, i.e., h[i] for i in node.

source
WaterModels.variable_pump_indicatorMethod

Creates binary variables for all pumps in the network, i.e., z_pump[a] for a in pump, where one denotes that the pump is currently operating (i.e., on), and zero indicates that the pump is not operating (i.e., off).

source
WaterModels.variable_regulator_indicatorMethod

Creates binary variables for all regulators in the network, i.e., z_regulator[a] for a in regulator, where one denotes that the pressure reducing is currently open and zero otherwise.

source
WaterModels.variable_reservoir_flowMethod

Instantiates outgoing flow variables for all reservoirs in the network, i.e., q_reservoir[i] for i in reservoir. Note that these variables are always nonnegative, since for each reservoir, there will never be incoming flow.

source
WaterModels.variable_tank_flowMethod

Creates outgoing flow variables for all tanks in the network, i.e., q_tank[i] for i in tank. Note that, unlike reservoirs, tanks can have inflow.

source
WaterModels.variable_valve_indicatorMethod

Creates binary variables for valves in the network, i.e., z_valve[a] for a in valve, where one denotes that the valve is open and zero denotes that the valve is closed.

source
WaterModels.variable_flowFunction

Create flow-related variables common to all directed flow models for edge-type components.

source

Create flow-related variables common to all directed flow models for node-connecting components.

source

Creates flow variables for LA formulations (q, lambda, x_pw).

source

Create flow-related variables common to all directed flow models for node-connecting components.

source