并使用get_problem获取 ZDT1 多目标问题的定义。你可以替换get_problem中的问题名称以适应你的问题。实际应用中,需要根据问题定制适当的多目标优化问题,并选择合适的算法。pymoo提供了很多其他的多目标优化算法,你可以根据问题的性质选择适当的算法。
git clone git@github.com:guofei9987/scikit-opt.git cd scikit-opt pip install . Genetic Algorithm 第一步:定义你的问题 import numpy as np def schaffer(p): ''' This function has plenty of local minimum, with strong shocks global minimum at (0,0) with value 0 ''' x1, x2 = p x =...
并使用get_problem获取 ZDT1 多目标问题的定义。你可以替换get_problem中的问题名称以适应你的问题。
scikit-opt——Python中的群体智能优化算法库 安装 pip install scikit-opt 1. 对于当前的开发者版本: git clone git@:guofei9987/scikit-opt.git cd scikit-opt pip install . 1. 2. 3. Genetic Algorithm 第一步:定义你的问题 import numpy as np def schaffer(p): ''' This function has plenty of ...
cd scikit-opt pip install . Genetic Algorithm 第一步:定义你的问题 import numpy as np def schaffer(p): ‘‘‘ This function has plenty of local minimum, with strong shocks global minimum at (0,0) with value 0 ‘‘‘ x1, x2 = p ...