Skip to content
Snippets Groups Projects
Commit 44b25d8e authored by Bernhard Johannes Berger's avatar Bernhard Johannes Berger
Browse files

Resolve "Misconfiguration of example search-with-benchmark".

Closes #86
parent 22e619dc
No related branches found
No related tags found
2 merge requests!26Merge current develop into release,!20Resolve "Misconfiguration of example search-with-benchmark"
Pipeline #346102 passed
......@@ -3,8 +3,10 @@ module search {
/**
* Source dimension of the training data.
*/
quotient real data 'x:0';
quotient real data 'x:0' with constraints:
value >= -5.12;
value <= 5.12;
;
/**
* Target dimension of the training data.
......
......@@ -13,7 +13,7 @@ module search {
description := "Simple search";
'search-space' := [data 'x:0'];
'optimisation-space' := [data 'y:0'];
'maximise' := true;
'maximise' := false;
'optimisation-function' := 'benchmark-function' {
'benchmarks' := [
'benchmark-configuration' { function := ackley {}; reads := [data 'x:0']; writes := [data 'y:0']; }
......@@ -23,9 +23,9 @@ module search {
configure 'evolutionary-algorithm' for 'example-search' {
'number-of-generations' := 5;
'size-of-population' := 20;
'maximum-age' := 5;
'number-of-generations' := 20;
'size-of-population' := 50;
'maximum-age' := 20;
'offspring-fraction' := 0.7;
'initialisation' := 'random-population' {};
......@@ -43,7 +43,11 @@ module search {
];
};
handlers := [];
handlers := [
'kill-at-birth' {
'repair-strategy' := 'repair-with-random' {};
}
];
selectors := selectors {
offspring := 'roulette-wheel-selector' {};
......
......@@ -3,7 +3,10 @@ module search {
/**
* Source dimension of the training data.
*/
quotient real data 'x:0';
quotient real data 'x:0' with constraints:
value >= -5.12;
value <= 5.12;
;
/**
......
......@@ -13,7 +13,7 @@ module search {
description := "Simple search";
'search-space' := [data 'x:0'];
'optimisation-space' := [data 'y:0'];
'maximise' := true;
'maximise' := false;
'optimisation-function' := 'benchmark-function' {
'benchmarks' := [
'benchmark-configuration' { function := ackley {}; reads := [data 'x:0']; writes := [data 'y:0']; }
......@@ -23,9 +23,9 @@ module search {
configure 'evolutionary-algorithm' for 'example-search' {
'number-of-generations' := 100;
'number-of-generations' := 20;
'size-of-population' := 50;
'maximum-age' := 100;
'maximum-age' := 20;
'offspring-fraction' := 0.6;
'initialisation' := 'random-population' {};
......@@ -43,7 +43,11 @@ module search {
];
};
handlers := [];
handlers := [
'kill-at-birth' {
'repair-strategy' := 'repair-with-random' {};
}
];
selectors := selectors {
offspring := 'roulette-wheel-selector' {};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment