(function from pyomo.network.util)
pyomo.network.util
Create a new variable that will have the same indexing set, domain, and bounds as the provided component, and add it to the given block. Optionally pass an index set to use that to build the variable, but this set must be symmetric to comp’s index set.