ElfPSP_ParallelABC
Protein Structure Prediction using Parallel Artificial Bee Colony Optimization
hive.h
Go to the documentation of this file.
1 #ifndef _HIVE_H_
2 #define _HIVE_H_
3 
6 #include <solution/solution.h>
7 
9 void HIVE_initialize();
10 
13 void HIVE_destroy();
14 
16 int HIVE_nSols();
17 
19 int HIVE_cycle();
20 
23 
25 Solution HIVE_solution(int idx);
26 
29 
31 int HIVE_hp_size();
32 
34 void HIVE_nullify_best();
35 
38 
45 void HIVE_add_solution(Solution sol, int index, int hpSize);
46 
48 void HIVE_increment_idle(int index);
49 
57 Solution HIVE_perturb_solution(int index, int hpSize);
58 
64 void HIVE_try_replace_solution(Solution alt, int index, int hpSize);
65 
69 void HIVE_force_replace_solution(Solution alt, int index);
70 
74 void HIVE_replace_best(Solution newBest);
75 
76 #endif
void HIVE_add_solution(Solution sol, int index, int hpSize)
Adds solution &#39;sol&#39; 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 &#39;index&#39;, 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 &#39;index&#39; 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