Simulation and ANTs code is contained in ANTS.cpp
, distribution.cpp
, SearchEngine.cpp
, simulate.cpp
, User.cpp
, and WebPage.cpp
. The other files are just for running the simulations efficiently.
Requires CMake version 3.5+ and a compiler with C++17 support.
-
Run CMake.
cmake .
-
Run make.
make
-
Execute simulation program.
PARAM_PATH
is a path to a simulation parameter file or a directory containing such files. Results are written to theoutputs
directory../search_engine PARAM_PATH [PARAM_PATH ...]
-
Execute ANTs optimization program.
./ants
Simulation parameter either specify the parameters used to run the simulation, or a sweep on one parameter. Unspecified parameters take the value in params/default.params.
Valid parameter settings:
NUM_USERS
NUM_PAGES
MAX_INFO_INT
PAGE_LENGTH
PAGE_LENGTH_MIN
PAGE_LENGTH_MAX
PAGE_STD_DEV
PAGE_STD_DEV_MIN
PAGE_STD_DEV_MAX
PAGE_CLICK_WEIGHT
INFO_FOUND_WEIGHT
TOPIC_SIMILARITY_WEIGHT
USER_LENGTH
USER_LENGTH_MIN
USER_LENGTH_MAX
USER_STD_DEV
USER_STD_DEV_MIN
USER_STD_DEV_MAX
USER_SAT_PCT
USER_SAT_PCT_MIN
USER_SAT_PCT_MAX