generate_delaunay
(function from pyomo.core.kernel.piecewise_library.util)
- pyomo.core.kernel.piecewise_library.util.generate_delaunay(variables, num=10, **kwds)[source]
Generate a Delaunay triangulation of the D-dimensional bounded variable domain given a list of D variables.
Requires numpy and scipy.
- Parameters:
variables – A list of variables, each having a finite upper and lower bound.
num (int) – The number of grid points to generate for each variable (default=10).
**kwds – All additional keywords are passed to the scipy.spatial.Delaunay constructor.
- Returns:
A scipy.spatial.Delaunay object.