[Python] Setting discrete ranges for specific parameters of the design vector (x) to run PSO...

Discussão em 'Python' iniciado por Stack, Abril 25, 2025.

  1. Stack

    Stack Membro Participativo

    Has anyone worked with the Indago Python module? I couldn't find many information on it besides the official documentation (https://indago.readthedocs.io/index.html).

    I'm using it to run the Particle Swarm Optimization and couldn't find a way to set discrete ranges to specific parameters of the design vector (x).

    For example, consider a design vector (x) with dimension=5. Therefore the vector x would have 5 parameters (I'm I getting this wrong?). If I wanted to set discrete ranges for these 5 parameters, how could I do it?

    I worked with the PyGAD module aswell to run the GA and I could do this by using this configuration:

    gene_space=[[0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
    [500, 1000, 1500, 2000, 2500, 3000],
    [10, 20, 30, 40, 50, 60, 70, 80, 90, 100],
    [0.1, 0.2, 0.3, 0.4],
    [0.6, 0.7, 0.8, 0.9]]


    Should I be using the pso.minimize_exhaustive insted of the pso.optimize?

    Continue reading...

Compartilhe esta Página