Please enable JavaScript.
Coggle requires JavaScript to display documents.
run_test_WOA_22102020 - Coggle Diagram
run_test_WOA_22102020
Setting parameters
obj_func = F30
Ham F30 la compostion function so 30
Vay tai sao no lai lien quan den thuat toan ca voi?
A, chac do no la mot ham kiem thu nao do
lb = [-15, -10, -3, -15, -10, -3, -15, -10, -3, -15, -10, -3, -15, -10, -3]
ub = [15, 10, 3, 15, 10, 3, 15, 10, 3, 15, 10, 3, 15, 10, 3]
lb = [-100]
Lower Bounds = -100
ub = [100]
Upper bounds=100
problem_size = 1000
Problem_size co phai la so lan lap khong?
batch_size = 25
Batch_size co lien quan den so lan lap khong?
verbose = True
Verbose nghia la hien ra chi tiet qua trinh phai khong?
epoch = 100
epoch co phai la so lan du lieu dua vo mot luot hay khong?
pop_size = 50
pop_size=50 nghia la gi? Co phai so lan lap khong?
Khong nhe, cai nay la so luong cu dan trong quan the
Call function and export the result
md1 = BaseWOA(obj_func, lb, ub, problem_size, batch_size, verbose, epoch, pop_size)
best_pos1, best_fit1, list_loss1 = md1.train()
print(md1.solution[0])
print(md1.solution[1])
print(md1.loss_train)
Import library
from opfunu.cec_basic.cec2014_nobias import *
from mealpy.swarm_based.WOA import BaseWOA