OptimizationVariable.to_model#

abstractmethod OptimizationVariable.to_model(z)[source]#

Map this variable’s slice of the flat vector to its model-space tensor.

Parameters:
zXTensorVariable

The variable’s contiguous slice of the flat decision vector, with a single flat dimension of length size.

Returns:
XTensorVariable

The tensor to substitute for name in the model graph.