Skip to content

Commit

Permalink
AOS uses fixed continous box
Browse files Browse the repository at this point in the history
  • Loading branch information
ToKiNoBug committed Jul 28, 2022
1 parent 3f6238c commit 25ec4a1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/AOS_Rastrigin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ using std::cout, std::endl;
int main() {
constexpr int Dim = 3;

heu::AOS<heu::ContinousBox<Eigen::Array<double, Dim, 1>, heu::BoxShape::SQUARE_BOX>,
heu::AOS<heu::FixedContinousBox17<Eigen::Array<double, Dim, 1>, heu::encode(-5), heu::encode(5),
heu::encode(1.5)>,
heu::FITNESS_LESS_BETTER, heu::RECORD_FITNESS, void,
heu::testFunctions<Eigen::Array<double, Dim, 1>>::rastrigin>
solver;

solver.setRange(-5, 5);
solver.setDelta(1.5);
// solver.setRange(-5, 5);
// solver.setDelta(1.5);

heu::AOSOption opt;
opt.electronNum = 50;
Expand Down

0 comments on commit 25ec4a1

Please sign in to comment.