OptimizationVariable.unpack#
- abstractmethod OptimizationVariable.unpack(x)[source]#
Map a solution slice to a labelled
DataArray.- Parameters:
- x
np.ndarray 1-D array of length
size.
- x
- Returns:
DataArrayLabelled with
dimsandcoords.
Map a solution slice to a labelled DataArray.
np.ndarray1-D array of length size.
DataArrayLabelled with dims and coords.