This repository was archived by the owner on Jul 16, 2024. It is now read-only.
Description When running in linux, this problem,
--> Island went fine
--> Archipelageo crashes
How to make Archipelago runs under Linux ?
class problem1(pyg.problem.base):
def __init__(self, dim=29):
super(problem1,self).__init__(dim)
self.__dim= dim
lbound= list(np.zeros(dim))
ubound= list(np.ones(dim))
self.set_bounds(lbound, ubound)
def _objfun_impl(self, x):
x= np.array(x, dtype=np.float)
f= np.sum(x*x-5*x+6)
return (f, )
def human_readable_extra(self):
return "\n\t Problem dimension: " + str(self.__dim)
Error message:
Traceback (most recent call last):
File "<ipython-input-31-0e0c722480c0>", line 1, in <module>
archi = pyg.archipelago(algo,prob,1,10, topology=pyg.topology.fully_connected())
File "/home/linux1/anaconda2/lib/python2.7/site-packages/PyGMO/core/__init__.py", line 342, in _generic_archi_ctor self.push_back(island(args[0], args[1], args[3]))
File "/home/linux1/anaconda2/lib/python2.7/site-packages/PyGMO/core/__init__.py", line 55, in __get_deepcopy__ return deepcopy(self)
File "/home/linux1/anaconda2/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/home/linux1/anaconda2/lib/python2.7/copy.py", line 336, in _reconstruct
y.__setstate__(state)
RuntimeError: unregistered void cast N5pagmo9algorithm2deE<-N5pagmo9migration13base_s_policyE
Reactions are currently unavailable
When running in linux, this problem,
--> Island went fine
--> Archipelageo crashes
How to make Archipelago runs under Linux ?
Error message: