# -*- coding: utf-8 -*-
"""
Python code of Gravitational Search Algorithm (GSA)
Reference: Rashedi, Esmat, <NAME>, and <NAME>. "GSA: a gravitational search algorithm." 
           Information sciences 179.13 (2009): 2232-2248.	

Coded by: <NAME> (<EMAIL>), <NAME> (emailid: <EMAIL>) and <NAME> (emailid: <EMAIL>)
The code template used is similar given at link: https://github.com/7ossam81/EvoloPy and matlab version of GSA at mathworks.

 -- Purpose: Defining the solution class
 
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

# -*- coding: utf-8 -*-
"""
Python code of Gravitational Search Algorithm (GSA)
Reference: Rashedi, Esmat, <NAME>, and <NAME>. "GSA: a gravitational search algorithm." 
           Information sciences 179.13 (2009): 2232-2248.	

Coded by: <NAME> (<EMAIL>), <NAME> (emailid: <EMAIL>) and <NAME> (emailid: <EMAIL>)
The code template used is similar given at link: https://github.com/7ossam81/EvoloPy and matlab version of GSA at mathworks.

 -- Purpose: Defining the solution class
 
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

# -*- coding: utf-8 -*- Python code of Gravitational Search Algorithm (GSA) Reference: Rashedi, Esmat, <NAME>, and <NAME>. "GSA: a gravitational search algorithm."             Information sciences 179.13 (2009): 2232-2248.	  Coded by: <NAME> (<EMAIL>), <NAME> (emailid: <EMAIL>) and <NAME> (emailid: <EMAIL>) The code template used is similar given at link: https://github.com/7ossam81/EvoloPy and matlab version of GSA at mathworks.   -- Purpose: Defining the solution class   Code compatible:  -- Python: 2.* or 3.*