geatpy icon indicating copy to clipboard operation
geatpy copied to clipboard

Evolutionary algorithm toolbox and framework with high performance for Python

Results 145 geatpy issues
Sort by recently updated
recently updated
newest added

The latest numpy has deprecated `np.int`: ``` AttributeError: module 'numpy' has no attribute 'int'. `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code,...

你好,在MyProblem中的目标函数计算过程中,我对pop.Phen进行了一些修改,也就是对某些变量进行了修改。但是之后的遗传操作过程中,我怎么样能让程序根据修改后的表现型矩阵进行选择、交叉、变异呢,是不是需要对现在的表现型矩阵进行反解码来更新染色体矩阵呢? 十分感谢!!!!!!!!!!!!!

在安装geatpy时发生错误 Defaulting to user installation because normal site-packages is not writeable Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting geatpy Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6a/be/195167884ff2fb6859cac2f32c8d351db7460df72e15f7afc1a7616b11d3/geatpy-2.4.0.tar.gz (60.0 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error ×...

请问如何实现决策变量为小数时,让其离散化的情况: 比如: 决策变量x区间为[0.1,0.4],是否能够让其在步长为0.1的情况下来更新,即可选集合为[0.1,0.2,0.3,0.4]

你好,我想问一下,在生成初始决策变量及之后进行迭代的时候,能不能不只给定范围限制。比如我有四个变量,范围都是清楚的,但是第一个变量和第二个变量间有一个关系(不等式),这样的情况下怎么进行初始化以及之后的迭代过程中,怎么让经过遗传操作后的新生成变量仍满足该关系呢。 十分感谢!!!!!!!!

**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd...

对于问题fieldD = np.array([[4,4,5],[1,2,3],[10,9,5],[0,0,1],[0,0,0],[1,1,1],[1,1,1],[0,1,0]]) chorm = np.array([[1,0,1,1,1,0,0,0,1,1,1,0,1], [0,1,0,0,1,1,0,1,0,1,1,1,1], [0,0,0,1,1,1,0,0,0,0,1,0,1]]) phen = ea.bs2ri(chorm,fieldD) 《Geatpy数据结构》文档出给出的结果是Phen = 7.6 5 11.51612903 3.4 8 6.87096774 1.6 7 5.32258065 而我代码运行的结果是 [[7.6 6. 4.41935484] [3.4 8. 3.64516129] [1.6...

01背包问题:每种物品只有一个,可以选择放或不放。 分组的背包问题:物品分为若干组,每组只能选择一个物品放入背包。

在nsgaii或者moead中,初始种群代码中是随机生成,我如何设置自己生成的初始种群来完成一次基于moea/d的多目标优化问题。初学者,先谢谢了

您好,想请问一下: 1、在已经算出的多目标优化解集的前提下,geatpy中的indicator.hv和indicator.Spacing是否可以直接引用? 2、我把解集数据调整成array形式,直接引用就跑通了,但不是特别清楚这两个函数的计算原理,所以不清楚这个结果意味着什么。请问哪里可以查到这两个函数的源码,或者具体计算方法? 3、不同算法算出的解集的hv和spacing是否可以直接进行比较? 4、另外需要对目标值统一量纲吗?这些目标的量纲差得很多。 谢谢!期待答复