BiCIAM - Framework Metaheurístico 1.0
Framework de optimización con algoritmos metaheurísticos y evolutivos
Cargando...
Buscando...
Nada coincide
Referencia de la clase metaheuristics.generators.ParticleSwarmOptimization

Algoritmo PSO que simula el comportamiento social de enjambres. Más...

Diagrama de herencia de metaheuristics.generators.ParticleSwarmOptimization
Diagrama de colaboración de metaheuristics.generators.ParticleSwarmOptimization:

Métodos públicos

 ParticleSwarmOptimization ()
State generate (Integer operatornumber) throws IllegalArgumentException, SecurityException, ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
 Genera un nuevo estado candidato.
void inicialiceLBest ()
State getReference ()
 Obtiene el estado de referencia actual.
State getStateReferencePSO ()
void setStateReferencePSO (State stateReferencePSO)
List< ParticlegetListStateReference ()
void setListStateReference (List< State > listStateReference)
List< ParticlegetListParticle ()
List< ParticlesetListParticle (List< Particle > listParticle)
GeneratorType getGeneratorType ()
void setGeneratorType (GeneratorType generatorType)
void updateReference (State stateCandidate, Integer countIterationsCurrent) throws IllegalArgumentException,SecurityException, ClassNotFoundException, InstantiationException,IllegalAccessException, InvocationTargetException,NoSuchMethodException
 Actualiza el estado de referencia con un nuevo candidato.
State gBestInicial ()
void setInitialReference (State stateInitialRef)
 Establece el estado de referencia inicial.
GeneratorType getType ()
 Obtiene el tipo de generador.
List< StategetReferenceList ()
 Obtiene la lista de estados de referencia.
List< StategetSonList ()
 Obtiene la lista de estados hijos generados.
boolean awardUpdateREF (State stateCandidate)
 Verifica si se debe actualizar la referencia.
void setWeight (float weight)
 Establece el peso del generador.
float getWeight ()
 Obtiene el peso actual del generador.
int[] getListCountBetterGender ()
 Obtiene el historial de mejoras por período.
int[] getListCountGender ()
 Obtiene el historial de uso por período.
float[] getTrace ()
 Obtiene el historial de trazas.

Métodos públicos estáticos

static int getCountRef ()
static void setCountRef (int countRef)

Atributos públicos estáticos

static int countRef = 0
static int countParticle = 0
static int coutSwarm = 0
static int countParticleBySwarm = 0
static double wmax = 0.9
static double wmin = 0.2
static int learning1 = 2
static int learning2 = 2
static double constriction
static boolean binary = false
static State[] lBest
static State gBest
static int countCurrentIterPSO
static int usageCount = 0
static int improvementCount = 0

Métodos privados

List< ParticlegetListStateRef ()

Atributos privados

State stateReferencePSO
List< StatelistStateReference = new ArrayList<State>()
List< ParticlelistParticle = new ArrayList<Particle> ()
GeneratorType generatorType
float weight = 50
int[] improvementCountHistory = new int[10]
int[] usageCountHistory = new int[10]
float[] listTrace = new float[1200000]

Otros miembros heredados

Atributos públicos heredados de metaheuristics.generators.Generator
int countGender
 Contador de uso del generador.
int countBetterGender
 Contador de mejoras del generador.
int[] listCountBetterGender
 Array con las mejoras de cada generador en períodos de 10, acumulativo.

Descripción detallada

Algoritmo PSO que simula el comportamiento social de enjambres.

Esta clase implementa el algoritmo PSO que utiliza una población de partículas que se mueven en el espacio de búsqueda influenciadas por su mejor posición personal y la mejor posición global del enjambre.

Documentación de constructores y destructores

◆ ParticleSwarmOptimization()

metaheuristics.generators.ParticleSwarmOptimization.ParticleSwarmOptimization ( )
Gráfico de llamadas de esta función:
Gráfico de llamadas a esta función:

Documentación de funciones miembro

◆ awardUpdateREF()

boolean metaheuristics.generators.ParticleSwarmOptimization.awardUpdateREF ( State stateCandidate)

Verifica si se debe actualizar la referencia.

Parámetros
stateCandidateEstado candidato a verificar
Devuelve
true si se debe actualizar, false en caso contrario

Reimplementado de metaheuristics.generators.Generator.

◆ gBestInicial()

State metaheuristics.generators.ParticleSwarmOptimization.gBestInicial ( )
Gráfico de llamadas de esta función:
Gráfico de llamadas a esta función:

◆ generate()

State metaheuristics.generators.ParticleSwarmOptimization.generate ( Integer operatornumber) throws IllegalArgumentException, SecurityException, ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException

Genera un nuevo estado candidato.

Parámetros
operatornumberNúmero de operador a utilizar
Devuelve
Estado candidato generado
Excepciones
IllegalArgumentExceptionSi los argumentos son inválidos
SecurityExceptionSi hay problemas de seguridad
ClassNotFoundExceptionSi no se encuentra una clase
InstantiationExceptionSi hay error en la instanciación
IllegalAccessExceptionSi hay acceso ilegal
InvocationTargetExceptionSi hay error en la invocación
NoSuchMethodExceptionSi no se encuentra un método

Reimplementado de metaheuristics.generators.Generator.

◆ getCountRef()

int metaheuristics.generators.ParticleSwarmOptimization.getCountRef ( )
static

◆ getGeneratorType()

GeneratorType metaheuristics.generators.ParticleSwarmOptimization.getGeneratorType ( )

◆ getListCountBetterGender()

int[] metaheuristics.generators.ParticleSwarmOptimization.getListCountBetterGender ( )

Obtiene el historial de mejoras por período.

Devuelve
Array con el contador de mejoras

Reimplementado de metaheuristics.generators.Generator.

◆ getListCountGender()

int[] metaheuristics.generators.ParticleSwarmOptimization.getListCountGender ( )

Obtiene el historial de uso por período.

Devuelve
Array con el contador de uso

Reimplementado de metaheuristics.generators.Generator.

◆ getListParticle()

List< Particle > metaheuristics.generators.ParticleSwarmOptimization.getListParticle ( )
Gráfico de llamadas a esta función:

◆ getListStateRef()

List< Particle > metaheuristics.generators.ParticleSwarmOptimization.getListStateRef ( )
private
Gráfico de llamadas de esta función:
Gráfico de llamadas a esta función:

◆ getListStateReference()

List< Particle > metaheuristics.generators.ParticleSwarmOptimization.getListStateReference ( )
Gráfico de llamadas de esta función:
Gráfico de llamadas a esta función:

◆ getReference()

State metaheuristics.generators.ParticleSwarmOptimization.getReference ( )

Obtiene el estado de referencia actual.

Devuelve
Estado de referencia actual

Reimplementado de metaheuristics.generators.Generator.

◆ getReferenceList()

List< State > metaheuristics.generators.ParticleSwarmOptimization.getReferenceList ( )

Obtiene la lista de estados de referencia.

Devuelve
Lista de estados de referencia

Reimplementado de metaheuristics.generators.Generator.

Gráfico de llamadas a esta función:

◆ getSonList()

List< State > metaheuristics.generators.ParticleSwarmOptimization.getSonList ( )

Obtiene la lista de estados hijos generados.

Devuelve
Lista de estados hijos

Reimplementado de metaheuristics.generators.Generator.

◆ getStateReferencePSO()

State metaheuristics.generators.ParticleSwarmOptimization.getStateReferencePSO ( )

◆ getTrace()

float[] metaheuristics.generators.ParticleSwarmOptimization.getTrace ( )

Obtiene el historial de trazas.

Devuelve
Array con el historial de trazas

Reimplementado de metaheuristics.generators.Generator.

◆ getType()

GeneratorType metaheuristics.generators.ParticleSwarmOptimization.getType ( )

Obtiene el tipo de generador.

Devuelve
Tipo de generador metaheurístico

Reimplementado de metaheuristics.generators.Generator.

◆ getWeight()

float metaheuristics.generators.ParticleSwarmOptimization.getWeight ( )

Obtiene el peso actual del generador.

Devuelve
Peso del generador

Reimplementado de metaheuristics.generators.Generator.

◆ inicialiceLBest()

void metaheuristics.generators.ParticleSwarmOptimization.inicialiceLBest ( )
Gráfico de llamadas de esta función:
Gráfico de llamadas a esta función:

◆ setCountRef()

void metaheuristics.generators.ParticleSwarmOptimization.setCountRef ( int countRef)
static

◆ setGeneratorType()

void metaheuristics.generators.ParticleSwarmOptimization.setGeneratorType ( GeneratorType generatorType)

◆ setInitialReference()

void metaheuristics.generators.ParticleSwarmOptimization.setInitialReference ( State stateInitialRef)

Establece el estado de referencia inicial.

Parámetros
stateInitialRefEstado de referencia inicial

Reimplementado de metaheuristics.generators.Generator.

◆ setListParticle()

List< Particle > metaheuristics.generators.ParticleSwarmOptimization.setListParticle ( List< Particle > listParticle)
Gráfico de llamadas a esta función:

◆ setListStateReference()

void metaheuristics.generators.ParticleSwarmOptimization.setListStateReference ( List< State > listStateReference)

◆ setStateReferencePSO()

void metaheuristics.generators.ParticleSwarmOptimization.setStateReferencePSO ( State stateReferencePSO)

◆ setWeight()

void metaheuristics.generators.ParticleSwarmOptimization.setWeight ( float weight)

Establece el peso del generador.

Parámetros
weightNuevo peso del generador

Reimplementado de metaheuristics.generators.Generator.

◆ updateReference()

void metaheuristics.generators.ParticleSwarmOptimization.updateReference ( State stateCandidate,
Integer countIterationsCurrent ) throws IllegalArgumentException,SecurityException, ClassNotFoundException, InstantiationException,IllegalAccessException, InvocationTargetException,NoSuchMethodException

Actualiza el estado de referencia con un nuevo candidato.

Parámetros
stateCandidateEstado candidato a considerar
countIterationsCurrentIteración actual del algoritmo
Excepciones
IllegalArgumentExceptionSi los argumentos son inválidos
SecurityExceptionSi hay problemas de seguridad
ClassNotFoundExceptionSi no se encuentra una clase
InstantiationExceptionSi hay error en la instanciación
IllegalAccessExceptionSi hay acceso ilegal
InvocationTargetExceptionSi hay error en la invocación
NoSuchMethodExceptionSi no se encuentra un método

Reimplementado de metaheuristics.generators.Generator.

Gráfico de llamadas de esta función:

Documentación de datos miembro

◆ binary

boolean metaheuristics.generators.ParticleSwarmOptimization.binary = false
static

◆ constriction

double metaheuristics.generators.ParticleSwarmOptimization.constriction
static

◆ countCurrentIterPSO

int metaheuristics.generators.ParticleSwarmOptimization.countCurrentIterPSO
static

◆ countParticle

int metaheuristics.generators.ParticleSwarmOptimization.countParticle = 0
static

◆ countParticleBySwarm

int metaheuristics.generators.ParticleSwarmOptimization.countParticleBySwarm = 0
static

◆ countRef

int metaheuristics.generators.ParticleSwarmOptimization.countRef = 0
static

◆ coutSwarm

int metaheuristics.generators.ParticleSwarmOptimization.coutSwarm = 0
static

◆ gBest

State metaheuristics.generators.ParticleSwarmOptimization.gBest
static

◆ generatorType

GeneratorType metaheuristics.generators.ParticleSwarmOptimization.generatorType
private

◆ improvementCount

int metaheuristics.generators.ParticleSwarmOptimization.improvementCount = 0
static

◆ improvementCountHistory

int [] metaheuristics.generators.ParticleSwarmOptimization.improvementCountHistory = new int[10]
private

◆ lBest

State [] metaheuristics.generators.ParticleSwarmOptimization.lBest
static

◆ learning1

int metaheuristics.generators.ParticleSwarmOptimization.learning1 = 2
static

◆ learning2

int metaheuristics.generators.ParticleSwarmOptimization.learning2 = 2
static

◆ listParticle

List<Particle> metaheuristics.generators.ParticleSwarmOptimization.listParticle = new ArrayList<Particle> ()
private

◆ listStateReference

List<State> metaheuristics.generators.ParticleSwarmOptimization.listStateReference = new ArrayList<State>()
private

◆ listTrace

float [] metaheuristics.generators.ParticleSwarmOptimization.listTrace = new float[1200000]
private

◆ stateReferencePSO

State metaheuristics.generators.ParticleSwarmOptimization.stateReferencePSO
private

◆ usageCount

int metaheuristics.generators.ParticleSwarmOptimization.usageCount = 0
static

◆ usageCountHistory

int [] metaheuristics.generators.ParticleSwarmOptimization.usageCountHistory = new int[10]
private

◆ weight

float metaheuristics.generators.ParticleSwarmOptimization.weight = 50
private

◆ wmax

double metaheuristics.generators.ParticleSwarmOptimization.wmax = 0.9
static

◆ wmin

double metaheuristics.generators.ParticleSwarmOptimization.wmin = 0.2
static

La documentación de esta clase está generada del siguiente archivo: