HOW TO RUN: Main file is src/Main.cpp
- #include your algorithm at the top of the file following these rules:
- run function is
vector<result> run(dimension, testFunctionNumber, boundaryLow, boundaryUp)
- result is a struct containing: int fez, double cost. - implement in in your algorithm
- class name is Algorithm
all the files are included in Main.cpp before compilation. Sufficient command should be:
g++ -o heuristic src/Main.cpp\
or
clang++ -O2 src/Main.cpp -o heuristic\
fez - current function evaluation count
cost - function evaluation value at current fez number
HOW TO RUN TESTS: install bazel: https://bazel.build/
run following command in root folder (do not forget three dots)
bazel test ...
or (for whole verbose output)
bazel test --test_output=all ...
for information about writing tests, visit: https://google.github.io/googletest/quickstart-bazel.html