-
Notifications
You must be signed in to change notification settings - Fork 0
/
DE.py
35 lines (29 loc) · 836 Bytes
/
DE.py
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
# !/usr/bin/env python
# --------------------------------------------------------------
# File: DE.py
# Project: PyEvoAlg
# Created: Sunday, 8th December 2019 12:24:18 pm
# @Author: Molin Liu, MSc in Data Science
# Contact: molin@live.cn
# Last Modified: Sunday, 8th December 2019 12:24:22 pm
# Copyright © Rockface 2019 - 2020
# --------------------------------------------------------------
import individual
class DE:
'''
Implementation of Differential Evolution
C_M: constraint matrix
'''
def __init__(self, F, N, G, constraint_matrix):
'''
Variables assignment
'''
self.F = F
self.G = G
self.N = N
'''
Initialization
'''
self.P = []
def _init_P(self):
raise NotImplementedError