I have no projects I need to use DEAP at the moment, BUT...
Several years ago, I taught a section of NASA Goddard's Python Bootcamp
on interlanguage communication - with examples communicating between
python, Fortran, and C (I do not remember if I included C++ as well, but
I do know I had demo code for Python=>C and C=>python). So, it should
be possible. In fact, one of the big projects I did nearly a decade
ago, the evaluation function was in Fortran (and could take several
hours per run). In that hack, I set up the standard output to be
something similar to YAML or maybe it was Key/Data pairs. Anyway, I
grabbed that output from via Popen, and then fed it into my statistics.
So, there are ways to do it directly, and indirectly.
Anyway, it is not clear from your earlier email what you are trying to
accomplish. DEAP does not have a lot of overhead as things go, so there
is little advantage to make it run inside of C++. On the other hand,
there are cases where the evaluation function can take hours for each
individual, and you can have huge savings by exporting that to
C/C++/Fortran, etc. So, give us some more information, and I/we will
see if we can be of more assistance.
EBo --
>>>>> <
https://groups.google.com/d/msgid/deap-users/75ff533b-479e-40a8-8813-692ae81ed46bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups
>>> "deap-users" group.
>>> To unsubscribe from this group and stop receiving emails from it,
>>> send an
>>> email to
deap-users+...@googlegroups.com.
>>> To view this discussion visit
>>>
https://groups.google.com/d/msgid/deap-users/334739df-5e7c-4bb5-88b9-72cdc7d624cdn%40googlegroups.com
>>> <
https://groups.google.com/d/msgid/deap-users/334739df-5e7c-4bb5-88b9-72cdc7d624cdn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups
>> "deap-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an
>> email to
deap-users+...@googlegroups.com.
>> To view this discussion visit
>>
https://groups.google.com/d/msgid/deap-users/CAJjWHnZVspgsBz4fvfFjgDnUoq94M4eo4B07mJx9tfyXgymChA%40mail.gmail.com
>> <
https://groups.google.com/d/msgid/deap-users/CAJjWHnZVspgsBz4fvfFjgDnUoq94M4eo4B07mJx9tfyXgymChA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>