(class from pyomo.core.kernel.piecewise_library.transforms_nd)
pyomo.core.kernel.piecewise_library.transforms_nd
Bases: object
object
A multi-variate piecewise linear function
Multi-varite piecewise linear functions are defined by a triangulation over a finite domain and a list of function values associated with the points of the triangulation. The function value between points in the triangulation is implied through linear interpolation.
tri (scipy.spatial.Delaunay) –
A triangulation over the discretized variable domain. Can be generated using a list of variables using the utility function util.generate_delaunay(). Required attributes:
util.generate_delaunay()
points: An (npoints, D) shaped array listing the D-dimensional coordinates of the discretization points. simplices: An (nsimplices, D+1) shaped array of integers specifying the D+1 indices of the points vector that define each simplex of the triangulation.
points: An (npoints, D) shaped array listing the D-dimensional coordinates of the discretization points.
simplices: An (nsimplices, D+1) shaped array of integers specifying the D+1 indices of the points vector that define each simplex of the triangulation.
values (numpy.array) – An (npoints,) shaped array of the values of the piecewise function at each of coordinates in the triangulation points array.
Methods
__init__(tri, values[, validate])
__init__
Attributes
triangulation
The triangulation over the domain of this function
values
The set of values used to defined this function
Member Documentation