Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Archipelago crashes in Linux. #186

Open
arita37 opened this issue Aug 27, 2016 · 0 comments
Open

Archipelago crashes in Linux. #186

arita37 opened this issue Aug 27, 2016 · 0 comments

Comments

@arita37
Copy link

arita37 commented Aug 27, 2016

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




Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant