Skip to content

LA4AM12/WOA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WOA

Java implementation of the Whale Optimization Algorithm

Description

Additional information about WOA can be found at the algorithm's webpage.

Usage

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

Examples

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 │
└─────────┴─────────┴────────┘

About

The Whale Optimization Algorithm in Java

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages