-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathrun_ABC.py
More file actions
21 lines (19 loc) · 711 Bytes
/
run_ABC.py
File metadata and controls
21 lines (19 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from models.multiple_solution.swarm_based.ABC import BaseABC
from utils.FunctionUtil import *
## Setting parameters
root_paras = {
"problem_size": 100,
"domain_range": [-100, 100],
"print_train": True,
"objective_func": C30
}
abc_paras = {
"epoch": 500,
"pop_size": 100,
"couple_bees": [16, 4], # number of bees which provided for good location and other location
"patch_variables": [5.0, 0.985], # patch_variables = patch_variables * patch_factor (0.985)
"sites": [3, 1], # 3 bees (employed bees, onlookers and scouts), 1 good partition
}
## Run model
md = BaseABC(root_algo_paras=root_paras, abc_paras=abc_paras)
md._train__()