sky2 / benchmarks /math /minimizing_max_min_dist /3 /initial_program.py
JustinTX's picture
Add files using upload-large-folder tool
b0e88cf verified
# EVOLVE-BLOCK-START
import numpy as np
def min_max_dist_dim3_14() -> np.ndarray:
"""
Creates 14 points in 3 dimensions in order to maximize the ratio of minimum to maximum distance.
Returns
points: np.ndarray of shape (14,3) containing the (x,y) coordinates of the 14 points.
"""
n = 14
d = 3
# places points randomly
np.random.seed(42)
points = np.random.randn(n, d)
return points
# EVOLVE-BLOCK-END