We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 40cd593 + fda28e4 commit 2b60f0dCopy full SHA for 2b60f0d
src/compas/numerical/solvers/ga.py
@@ -856,9 +856,9 @@ def foo(X):
856
857
fit_function = foo
858
fit_type = 'min'
859
- num_var = 10
+ num_var = 3
860
boundaries = [(0, 1)] * num_var
861
- num_bin_dig = [8] * num_var
+ num_bin_dig = [4] * num_var
862
output_path = os.path.join(compas.TEMP, 'ga_out/')
863
864
if not os.path.exists(output_path):
@@ -869,11 +869,11 @@ def foo(X):
869
num_var,
870
boundaries,
871
num_gen=100,
872
- num_pop=100,
873
- num_elite=40,
+ num_pop=30,
+ num_elite=10,
874
num_bin_dig=num_bin_dig,
875
output_path=output_path,
876
- min_fit=0.01)
+ min_fit=0.001)
877
878
plt = Ga_Plotter()
879
plt.input_path = ga_.output_path
0 commit comments