-
Notifications
You must be signed in to change notification settings - Fork 87
Linking issue #193
Comments
pagmo is not maintained anymore. We are currently deploying pagmo2, it has already many of the functionalities of the old pagmo and mainly it is easily installable. Check here the github proj: https://github.com/esa/pagmo2 |
Hello and thanks for the fast reply!
I am using pygmo inside another module called Spearmint-PESM, where parts
of pygmo are called as:
´from PyGMO.problem import base
from PyGMO import *
from PyGMO.util import hypervolume´
What would be equivalent for this in the new code? :)
Thanks!
Martin
PS: pip install pygmo doesn't seem to be working on Ubuntu 16.04
…On Mon, Apr 17, 2017 at 7:21 PM, Dario Izzo ***@***.***> wrote:
pagmo is not maintained anymore. We are currently deploying pagmo2, it has
already many of the functionalities of the old pagmo and mainly it is
easily installable.
Check here the github proj: https://github.com/esa/pagmo2
Check here the differences with respect to pagmo 1:
https://github.com/esa/pagmo2/wiki/From-1.x-to-2.x
Check here the current docs for pagmo2: https://esa.github.io/pagmo2/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#193 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ALnA1zeFoRRjBZFt_d8ztQJ5qpNNNuYDks5rw5-YgaJpZM4M_PGQ>
.
|
Hi Martin, I compile PyGMO 1 in 16.04 without any problem. This is the output of
|
Martin we are deploying the PyPi packages just these days, so for pip install you probably have to wait for the package to be uploaded. If you try to install from source I am curious to see if you get problem. We think the new build system is rather robust ... For the hypervolume, check the tutorial here (pygmo2): https://esa.github.io/pagmo2/docs/python/tutorials/hypervolume.html Let me know if you have problems .... |
You can check what packages are available here: https://pypi.python.org/pypi/pygmo/ At the moment in linux py36 and 64 bits is available. Soon also the others .... we are waitning for the CI to finish building |
Thanks!
building pygmo2 from source went smooth.
How much of the classes and functions have been changed when comparing
pygmo and pygmo2?
I would prefer to work with pygmo2, but don't want to have a vast debugging
project in my hands. :)
Thanks!
Martin
…On Tue, Apr 18, 2017 at 10:56 AM, Dario Izzo ***@***.***> wrote:
You can check what packages are available here:
https://pypi.python.org/pypi/pygmo/
At the moment in linux py36 and 64 bits is available. Soon also the others
.... we are waitning for the CI to finish building
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#193 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ALnA1-2Aw7h9dd77qM1sAoZhFleTJf-Dks5rxHqpgaJpZM4M_PGQ>
.
|
The full set of conda packages are in preparation as well: https://github.com/conda-forge/pagmo-feedstock |
pygmo2 is a complete rewrite of the code. So transition requires to recode your classes. Main differences are (from the user point of view) 1 - No need to derive from a base class to instantiate a problem If you mainly need access to the algorithms (a list of the available ones in pygmo2 can be found here: https://esa.github.io/pagmo2/docs/python/algorithms/py_algorithms.html) I suggest you to make the effort and change to pygmo2 as we will be developing it and dropping all development for pygmo1 If you do not want to make the effort (understandable) then I cannot offer much support on your installation problems (pygmo had a rather buggy build system ....), but we can still try to help on syntactic issues .... |
Is there an example of how to do this in pygmo2?
http://esa.github.io/pygmo/tutorials/adding_a_new_algorithm.html#adding-a-new-algorithm
Thank you!
Martin
…On Tue, Apr 18, 2017 at 11:26 AM, Dario Izzo ***@***.***> wrote:
pygmo2 is a complete rewrite of the code. So transition requires to recode
your classes. Main differences are (from the user point of view)
1 - No need to derive from a base class to instantiate a problem
2 - No separate functions for obj and constraints in the user defined
problems. Everything is returned by one fitness method: obj, ec, ic
(objectives, equalities, inequalities). Check the tutorial on how to code a
problem here: https://esa.github.io/pagmo2/docs/python/tutorials/coding_
udp_simple.html
If you mainly need access to the algorithms (a list of the available ones
in pygmo2 can be found here: https://esa.github.io/pagmo2/
docs/python/algorithms/py_algorithms.html) I suggest you to make the
effort and change to pygmo2 as we will be developing it and dropping all
development for pygmo1
If you do not want to make the effort (understandable) then I cannot offer
much support on your installation problems (pygmo had a rather buggy build
system ....), but we can still try to help on syntactic issues ....
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#193 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ALnA1w7KQWCeEpA5lVzBc2gHmqhck-1Jks5rxIHJgaJpZM4M_PGQ>
.
|
Not yet, but its rather easy (something like): class my_algorithm:
"""
A dumb algorithm doing nothing
"""
#This is the 'juice' of the algorithm, the method
#where the actual optimzation is coded.
def evolve(self, pop):
return pop
def get_name(self):
return "Null Algorithm (Python)"
def extra_info(self):
return "Not much to add" then: algo = pygmo.algorithm(my_algorithm()) check the docs of |
Hello guys!
I am getting an error when building on Ubuntu 16.04:
[ 49%] Built target pagmo_static[ 49%] Linking CXX executable mainsrc/libpagmo.a(jde.cpp.o): In function void boost::serialization::throw_exception<boost::archive::archive_exception>(boost::archive::archive_exception const&):jde.cpp:(.text._ZN5boost13serialization15throw_exceptionINS_7archive17archive_exceptionEEEvRKT_[_ZN5boost13serialization15throw_exceptionINS_7archive17archive_exceptionEEEvRKT_]+0x1d): undefined reference to boost::archive::archive_exception::archive_exception(boost::archive::archive_exception const&)collect2: error: ld returned 1 exit statusCMakeFiles/main.dir/build.make:99: recipe for target 'main' failedmake[2]: *** [main] Error 1CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/main.dir/all' failedmake[1]: *** [CMakeFiles/main.dir/all] Error 2Makefile:138: recipe for target 'all' failedmake: *** [all] Error 2
I read the solution of #69 to change the order of linking, but my CMakeCache.txt has the following lines already:
# Link main to pagmo_static library. IF(BUILD_MAIN) ADD_EXECUTABLE(main main.cpp) TARGET_LINK_LIBRARIES(main pagmo_static ${MANDATORY_LIBRARIES}) ENDIF(BUILD_MAIN)
I also built GCC from source like this: https://solarianprogrammer.com/2016/10/07/building-gcc-ubuntu-linux/, but haven't figured out how to let pagmo know of this source-built GCC.
I tried building PyGMO and main separately, which did not work either. Although PyGMO compiled without errors, when using it gave me:
ImportError: /usr/lib/python2.7/dist-packages/PyGMO/core/_core.so: undefined symbol: _ZN5boost7archive17archive_exceptionC1ERKS1_
I appreciate any feedback :)
The text was updated successfully, but these errors were encountered: