ToolPythonBeginner Minimization with scipy.optimize.minimize: the shape of a seven-atom cluster dist = squareform(pdist(best.x.reshape(-1, 3)))d = squareform(pdist(x.reshape(-1, 3)))