7ossam81 / EvoloPy

EvoloPy toolbox provides classical and recent nature-inspired metaheuristic for the global optimization.
Apache License 2.0
451 stars 226 forks source link

I need help #59

Open Aussian opened 3 years ago

Aussian commented 3 years ago

https://github.com/7ossam81/EvoloPy/blob/5f12bf5b5f54332c91b72069ec5dfc06a192c0c8/optimizers/HHO.py#L49

In Python 3, this package doesn't have this usage。so what can I do to get the code to work?

Aussian commented 3 years ago

from solution import solution ImportError: cannot import name 'solution' from 'solution' (D:\python\lib\site-packages\solution__init__.py) This is my mistake。

Swenchao commented 3 years ago

hi, from solution import solution the solution is not a package in python but a class(a file named "solution.py"). you can find it in the root. this class recorded some info of your model.

hope my answer can help you

priyak2605 commented 3 years ago

Show selected convergence curve

Image(foldername +'/' + drop_plot_convergence.value)


TypeError Traceback (most recent call last)

in 1 #Show selected convergence curve ----> 2 Image(foldername +'/' + drop_plot_convergence.value) TypeError: can only concatenate str (not "NoneType") to str i have an error like this
Swenchao commented 3 years ago

Show selected convergence curve Image(foldername +'/' + drop_plot_convergence.value)

TypeError Traceback (most recent call last) in 1 #Show selected convergence curve ----> 2 Image(foldername +'/' + drop_plot_convergence.value)

TypeError: can only concatenate str (not "NoneType") to str

i have an error like this

you can try this Image(str(foldername) +'/' + str(drop_plot_convergence.value))

Wonder9988 commented 1 year ago

嗨, 从解决方案导入解决方案 解决方案不是python中的包,而是一个类(名为“solution.py”的文件)。 你可以在根目录中找到它。 这个类记录了你的模型的一些信息。

希望我的回答能帮到你

您好,具体是怎么导入的呢