PyGMO (the Python Parallel Global Multiobjective Optimizer) is a scientific library providing a large number of optimisation problems and algorithms under the same powerful parallelization abstraction built around the generalized island-model paradigm.
Questions tagged [pygmo]
18 questions
3
votes
1 answer
PyGMO Batch fitness evaluation
My goal is to perform a parameter estimation (model calibration) using PyGmo. My model will be an external "black blox" model (c-code) outputting the objective function J to be minimized (J in this case will be the "Normalized Root Mean Square…

T. Sergi
- 203
- 2
- 9
3
votes
3 answers
Pygmo2: migration between islands in an archipelago during evolution
I'm trying to use the Python library Pygmo2 (https://esa.github.io/pagmo2/index.html) to parallelize an optimization problem.
To my understanding, parallelization can be achieved with an archipelago of islands (in this case, mp_island).
As a minimal…

gondo
- 37
- 6
2
votes
0 answers
Pygmo 2: control of memory allocation
I'm happily running Pygmo2 to solve a 18-parameters problem using self-adapting differential evolution.
Everything runs fine but at an high cost: Pygmo hugely overallocates memory, requesting about 170G while actually using about 10G.
I'm running on…

Matteo
- 265
- 5
- 16
2
votes
2 answers
Multi-objective optimisation using PyGMO
I am using the PyGMO package for Python, for multi-objective optimisation. I am unable to fix the dimension of the fitness function in the constructor, and the documentation is not very descriptive either. I am wondering if anyone here has had…

Karthik Raman
- 103
- 7
1
vote
1 answer
Conflicts during PyGMO installation on Mac OS X 11.2.2 with Anaconda
I am attempting to install PyGMO on Mac OS X 11.2.2 (with Anaconda which I reinstalled so the Anaconda Navigator is now upgraded to 2.0.1.)
After the installation starts, it collects package metadata and reports it found package conflicts. How can I…

user64150
- 59
- 5
1
vote
0 answers
i am having a problem with pygmo software
i have installed the pygmo software via conda prompt. and while running . the following error appeared. how can i fix my installation
in
----> 1 from pygmo import *
2 from pygmo import *
3 import…

omar Elfarouk
- 63
- 1
- 6
1
vote
1 answer
AttributeError: module 'pygmo' has no attribute 'spea2'
Pygmo 2.1 haven't SPEA2 Algorithm implemented yet?
I'm asking because SPEA2 looks fully implemented on Pygmo documentation
nsga2 algorithm it's ok.
Steps to reproduce error:
import pygmo as pg
algo = pg.algorithm(pg.spea2(archive_size = 0)) I…
algo = pg.algorithm(pg.spea2(archive_size = 0)) I…

licensed
- 11
- 2
1
vote
1 answer
Get evolution log from a pygmo archipelago
The question is pretty straightforward and maybe stupid, but here we go:
as in here (https://esa.github.io/pagmo2/docs/python/algorithms/py_algorithms.html)
if you evolve a single population you can get the log of your algo.evolve() call as…

Matteo
- 265
- 5
- 16
1
vote
1 answer
pygmo2 archipelago using simulated_annealing only evolves the initial champion
In using the pygmo2 simulated_annealing() algorithm in an archipelago, I found that only the initial champion seems to be evolved and all the other islands stay the same.
Consider the following test…

AstroBen
- 813
- 2
- 9
- 20
1
vote
1 answer
Running PyGMO in Python 3.5
I don't know whether I've come to to correct place, but I'm now trying to run a program on 64-bit Windows, Python 3.5.1 that requires PyGMO.
I downloaded the msi release of 1.1.7 (Downloaded here), run the installer, and try to run the program, and…

Chung Lun Yuen
- 319
- 4
- 15
0
votes
0 answers
How to run an OpenMDAO problem employing pygmo if the library is populated with weakrefs
I am having trouble trying to parallelize an OpenMDAO problem due to the presence of weakrefs to some object instances within the code. I am serializing the data using Dill, which does not raise any errors. However, when debugging it says that some…

IgS2023
- 1
- 1
0
votes
0 answers
Pygmo2: What is the point of evolving an archipelago in a loop if number of generations already set in algo
I want to solve a multi-objective problem with nsga2 or moead taking advantage of the parallelism available in pygmo library. I have seen a very nice example on github posted below. However I am not sure I understand it correctly. Setting the…

Sophie
- 11
- 3
0
votes
0 answers
Build and install for python 3.6 32 bit import error pygmo2
After compiling pagmo2 c++ library and then building pygmo2 from source in windows 10 64 bit and python 3.6 32 bit, It was successfully installed, but when I want to import module I get this error:
Traceback (most recent call last): File "",…

Reza Akraminejad
- 1,412
- 3
- 24
- 38
0
votes
1 answer
Why is normalised hyper volume (S metric) zero for a rectangle with ref point at the extreme?
Why is normalised hyper volume for this zero?
The Pareto front has two points (415, 110929) and (78, 258337). The reference point is [max(X)+1, max(Y)+1]
The following code in python calculates the normalised hyper volume
X = [415, 78]
Y = [110929,…

dev
- 47
- 6
0
votes
0 answers
Loading dll just outside class is giving different behavior
I'm using python to load a DLL generated in c++ (working correctly) using the cdll.LoadLibrary(). The issue is that I'm needing to reload the DLL inside the class every time the class is called, otherwise it gives a different behavior.
When I reload…

DGIorio
- 11
- 3