OptimizationVariable.to_model#
- abstractmethod OptimizationVariable.to_model(z)[source]#
Map this variable’s slice of the flat vector to its model-space tensor.
- Parameters:
- z
XTensorVariable The variable’s contiguous slice of the flat decision vector, with a single flat dimension of length
size.
- z
- Returns:
XTensorVariableThe tensor to substitute for
namein the model graph.