void HIVE_add_solution(Solution sol, int index, int hpSize)
Adds solution 'sol' as the index-th solution of the HIVE.
void HIVE_increment_idle(int index)
Increments the idle_iterations of the solution desired.
Definition: hive.c:87
int HIVE_cycle()
Returns the number of cycles elapsed within the hive.
Definition: hive.c:61
Solution HIVE_best_sol()
Returns a pointer to the best solution found so far in the hive.
Definition: hive.c:73
Routines for manipulating Solution objects, such as creation, randomization, perturbation etc...
Solution * HIVE_solutions()
Returns the vector of solutions within the hive.
Definition: hive.c:65
int HIVE_hp_size()
Returns the size of the protein being predicted.
Definition: hive.c:77
void HIVE_force_replace_solution(Solution alt, int index)
Replaces solution at index 'index', unconditionally.
Definition: hive.c:121
void HIVE_replace_best(Solution newBest)
Replaces the best solution with the given solution.
Definition: hive.c:127
void HIVE_nullify_best()
Nullifies the best solution, without freeing it.
Encapsulates a solution, which is a protein conformation that is developed by a bee.
Definition: solution_structure_private.h:5
void HIVE_try_replace_solution(Solution alt, int index, int hpSize)
The current Solution with index 'index' is SOL1.
Definition: hive.c:102
Solution HIVE_perturb_solution(int index, int hpSize)
Causes a minor variation in the solution at given index.
Definition: hive.c:92
void HIVE_initialize()
Initializes the global HIVE object.
Definition: hive.c:35
int HIVE_nSols()
Returns the number of solutions in the hive.
Definition: hive.c:57
Solution HIVE_solution(int idx)
Returns a specific solution.
Definition: hive.c:69
void HIVE_increment_cycle()
Tells the HIVE to increment one cycle in the cycle counter.
Definition: hive.c:82
void HIVE_destroy()
Frees memory allocated in HIVE.
Definition: hive.c:49