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

Archipelago crashes in Linux. #186

@arita37

Description

@arita37

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




Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions