text: #!/usr/bin/env python
  # ------------------------------------------------------------------------------------------------------%
  # Created by "Thieu Nguyen" at 22:30, 08/06/2020                                                        %
  #                                                                                                       %
  #       Email:      nguyenthieu2102@gmail.com                                                           %
  #       Homepage:   https://www.researchgate.net/profile/Thieu_Nguyen6                                  %
  #       Github:     https://github.com/thieu1995                                                  %
  #-------------------------------------------------------------------------------------------------------%
  
  from opfunu.cec_basic.cec2014_nobias import *
  from mealpy.evolutionary_based.DE import BaseDE
  
  ## Setting parameters
  obj_func = F1
  # 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]
  ub = [100]
  problem_size = 1000
  batch_size = 25
  verbose = True
  epoch = 1000
  pop_size = 50
  
  md1 = BaseDE(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)
  
  