Network Formulations
Type Hierarchy
We begin with the top of the hierarchy, where we can distinguish between gas flow models. Currently, there are two variations of the disjunctive form of the weymouth equations: The full non convex formulation and its conic relaxation.
AbstractMINLPForm <: AbstractGasFormulation
AbstractMISOCPForm <: AbstractGasFormulation
Gas Models
Each of these forms can be used as the type parameter for a GasModel:
MINLPGasModel = GenericGasModel(StandardMINLPForm)
MISOCPGasModel = GenericGasModel(StandardMISOCPForm)
For details on GenericGasModel
, see the section on Gas Model.
User-Defined Abstractions
The user-defined abstractions begin from a root abstract like the AbstractGasFormulation
abstract type, i.e.
AbstractMyFooForm <: AbstractGasFormulation
StandardMyFooForm <: AbstractFooForm
FooGasModel = GenericGasModel{StandardFooForm}
MINLP
GasModels.constraint_weymouth
— Method.Weymouth equation with discrete direction variables
Weymouth equation with fixed direction variables
MISOCP
GasModels.constraint_weymouth
— Method.Weymouth equation with discrete direction variables
Weymouth equation with fixed direction
GasModels.variable_flux
— Method.GasModels.variable_flux_ne
— Method.