I am trying to create a piecewise linear objective from a multivariate nonlinear function. Using the pyomo kernel library, I came up with the following working example:
import pyomo.environ as pyoSince I would like to work with pyomo models created using the pyomo.environ components, I would prefer to use pyomo.environ.Piecewise. In the documentation, no examples using multivariate functions are given.
Question
Is it possible to recreate the above using only features from pyomo.environ?
(I also posted this question on StackOverflow here)
Thanks for any help!