-
Notifications
You must be signed in to change notification settings - Fork 87
Code in C++, use in Python: tutorial needed [sf#40] #40
Comments
Originally posted by mmarcusx on 2013-11-25 15:44:27. I have already written a tutorial on that: https://sourceforge.net/apps/mediawiki/pagmo/index.php?title=Developing_guide it could be improved though... |
Originally posted by darioizzo on 2013-11-25 15:55:19. The tutorial you refer to is for developers. It shows how a developer can put in PaGMO a new problem / algorithm that is to be shipped in the next release. Since v 1.1.5 we allow the option to install header files. The tutorial I am asking should show how a normal user (not touching/compiling the pagmo code) can still use libpagmo and PyGMO to code its own problems in c++ and have them visible in Python. You can see the attached files for an example. |
Originally posted by darioizzo on 2013-11-28 16:51:08. And here is a new updated version of the scripts that are more robust to porting |
The files have been moved to github gist (https://gist.github.com/darioizzo/9215291) |
Hello, I've started writing a tutorial at https://github.com/neduard/pagmo/wiki/PaGMO-C---Tutorial However, I have a couple of questions:
I can compile successfully using
I found https://mail.python.org/pipermail/cplusplus-sig/2009-February/014244.html but changing the position of the I then fiddled with the code in Any ideas on what I am missing?
|
Maybe you need to import PyGMO before importing my_pygmo_probs? |
@darioizzo Thanks! That did the trick! I finished writing the rest of the tutorial. |
The tutorial is now available in the wiki at https://github.com/esa/pagmo/wiki/%5BTUTORIAL%5D-Code-a-problem-in-Cpp,-use-it-in-Python |
Originally created by darioizzo on 2013-11-25 15:01:51.
Create a tutorial on how to code a pagmo problem in C++ and use it in python. The following files are the bulk of it
The text was updated successfully, but these errors were encountered: