
算法
毛栗子201105
争做技术流
展开
-
粒子群算法——Python代码
PSOIndividual.py import numpy as np import ObjFunction import copy class PSOIndividual: ''' individual of PSO ''' def __init__(self, vardim, bound): ''' vardim: dimension of variables bound: boundaries of varia.原创 2021-11-09 12:33:09 · 854 阅读 · 0 评论 -
差分进化算法——Python代码
DEIndividual.py import numpy as np import ObjFunction class DEIndividual: ''' individual of differential evolution algorithm ''' def __init__(self, vardim, bound): ''' vardim: dimension of variables bound: bou.原创 2021-11-09 13:01:33 · 651 阅读 · 1 评论