具有连续变量和离散变量的粒子群优化

Particle swarm optimization with both continuous and discrete variables

所以我想尝试使用粒子群优化算法来解决我的优化问题。当我与 python 合作时,我正在研究 PySwarms 工具包。问题是我在这个领域并没有真正的经验,也不知道如何解释我的问题的完整性约束。我正在寻找有关在 PSO 中处理积分变量的一些方法的建议。也许还有一些 PySwarms 或任何好的替代包的例子?

你可以试试pymoo module, which is an excellent multi-objective optimization tool. It can also solve mixed variable problems. Despite pymoo is first of all designed to solve such problems using genetic algorithms, there is an implementation of PSO (single-objective with continuous variables). Maybe you'll find it useful to try to solve your mixed variable problem using genetic algorithm or one of its modifications (e.g. NSGAII).