PiecewiseLinearFunctionND
(class from pyomo.core.kernel.piecewise_library.transforms_nd)
- class pyomo.core.kernel.piecewise_library.transforms_nd.PiecewiseLinearFunctionND(tri, values, validate=True, **kwds)[source]
Bases:
objectA 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.
- Parameters:
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: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])Attributes
The triangulation over the domain of this function
The set of values used to defined this function
Member Documentation
- property triangulation
The triangulation over the domain of this function
- property values
The set of values used to defined this function