demo_pso_tsp.py运行有误
Author: a2635814919Created Sep 25, 2024Updated Sep 25, 2024
报错信息为: invalid escape sequence '\h'
Traceback (most recent call last): File "D:\Programs\OA\scikit-opt\examples\demo_pso_tsp.py", line 25, in pso_tsp = PSO_TSP(func=cal_total_distance, n_dim=num_points, size_pop=200, max_iter=800, w=0.8, c1=0.1, c2=0.1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Programs\OA\scikit-opt\sko\PSO.py", line 212, in init self.func = func_transformer(func) ^^^^^^^^^^^^^^^^^^^^^^ TypeError: func_transformer() missing 1 required positional argument: 'n_processes'
Source: guofei9987/scikit-opt