Skip to content

Commit 2b60f0d

Browse files
committed
Merge branch 'master' of https://github.com/compas-dev/compas
2 parents 40cd593 + fda28e4 commit 2b60f0d

File tree

1 file changed

+5
-5
lines changed
  • src/compas/numerical/solvers

1 file changed

+5
-5
lines changed

src/compas/numerical/solvers/ga.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -856,9 +856,9 @@ def foo(X):
856856

857857
fit_function = foo
858858
fit_type = 'min'
859-
num_var = 10
859+
num_var = 3
860860
boundaries = [(0, 1)] * num_var
861-
num_bin_dig = [8] * num_var
861+
num_bin_dig = [4] * num_var
862862
output_path = os.path.join(compas.TEMP, 'ga_out/')
863863

864864
if not os.path.exists(output_path):
@@ -869,11 +869,11 @@ def foo(X):
869869
num_var,
870870
boundaries,
871871
num_gen=100,
872-
num_pop=100,
873-
num_elite=40,
872+
num_pop=30,
873+
num_elite=10,
874874
num_bin_dig=num_bin_dig,
875875
output_path=output_path,
876-
min_fit=0.01)
876+
min_fit=0.001)
877877

878878
plt = Ga_Plotter()
879879
plt.input_path = ga_.output_path

0 commit comments

Comments
 (0)