forked from himanshuRepo/Biogeography-Based-Optimization
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolution.py
More file actions
36 lines (27 loc) · 1.06 KB
/
solution.py
File metadata and controls
36 lines (27 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- coding: utf-8 -*-
"""
Python code of Biogeography-Based Optimization (BBO)
Coded by: Raju Pal (emailid: raju3131.pal@gmail.com) and Himanshu Mittal (emailid: himanshu.mittal224@gmail.com)
The code template used is similar to code given at link: https://github.com/himanshuRepo/CKGSA-in-Python
and matlab version of the BBO at link: http://embeddedlab.csuohio.edu/BBO/software/
Reference: D. Simon, Biogeography-Based Optimization, IEEE Transactions on Evolutionary Computation, in print (2008).
@author: Dan Simon (http://embeddedlab.csuohio.edu/BBO/software/)
-- Solution variable File: Defining the solution variable for saving the output variables
Code compatible:
-- Python: 2.* or 3.*
"""
class solution:
def __init__(self):
self.best = 0
self.bestIndividual = []
self.convergence = []
self.optimizer = ""
self.objfname = ""
self.startTime = 0
self.endTime = 0
self.executionTime = 0
self.lb = 0
self.ub = 0
self.dim = 0
self.popnum = 0
self.maxiers = 0