hopsy.generate_unit_hypercube#

hopsy.generate_unit_hypercube(dimension: int) Tuple[ndarray, ndarray]#

Generate matrix A and vector b of the unit N-dimensional hypercube.

Parameters:

dimension (int) – Dimension N of the cube

Returns:

First value is the matrix A of shape (2*N, N), second the vector b of shape (2*N,)

Return type:

tuple[np.ndarray, np.ndarray]