From 557a5e6a82983d5469c2a7fc10a438271cae81af Mon Sep 17 00:00:00 2001 From: TashaSkyUp Date: Sun, 31 Jan 2021 16:44:03 -0500 Subject: [PATCH] Fix wrong shape of feature types np array This error is in the pypi package description as well. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 95ad6b6..3325a3d 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,7 @@ def f(X): return np.sum(X) varbound=np.array([[0.5,1.5],[1,100],[0,1]]) -vartype=np.array([['real'],['int'],['int']]) +vartype=np.array(['real','int','int']) model=ga(function=f,dimension=3,variable_type_mixed=vartype,variable_boundaries=varbound) model.run()