Java implementation of the Whale Optimization Algorithm
Additional information about WOA can be found at the algorithm's webpage.
The implementation of WOA can be found in "/src/main/java/WOA.java", which is a single objective optimization algorithm.
The test classes in "/src/test/java", which contain several demos on how to use this algorithm to optimize specify functions:
- SOOTest : Test functions for single-objective optimization
- COTest : Test functions for constrained optimization
All the test functions can be found in Test functions for optimization
To test this project easily, make sure you have set up the maven environment.
Test Himmelblau's function for example:
cd ${project_path}
mvn test -Dtest=SOOTest#himmelblau*
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running SOOTest
optimize himmelblau's function result:
┌─────────┬─────────┬────────┐
│optimal │dim0 │dim1 │
├─────────┼─────────┼────────┤
│0.00000 │-2.80515 │3.13133 │
└─────────┴─────────┴────────┘