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.HillClimbingRestart

Algoritmo Hill Climbing con reinicio periódico. Más...

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

Métodos públicos

 HillClimbingRestart ()
State generate (Integer operatornumber) throws IllegalArgumentException, SecurityException, ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
 Genera un nuevo estado candidato.
void updateReference (State stateCandidate, Integer countIterationsCurrent) throws IllegalArgumentException, SecurityException, ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
 Actualiza el estado de referencia con un nuevo candidato.
List< StategetReferenceList ()
 Obtiene la lista de estados de referencia.
State getReference ()
 Obtiene el estado de referencia actual.
void setStateRef (State stateRef)
void setInitialReference (State stateInitialRef)
 Establece el estado de referencia inicial.
GeneratorType getGeneratorType ()
void setGeneratorType (GeneratorType Generatortype)
GeneratorType getType ()
 Obtiene el tipo de generador.
List< StategetSonList ()
 Obtiene la lista de estados hijos generados.
void setTypeCandidate (CandidateType typeCandidate)
boolean awardUpdateREF (State stateCandidate)
 Verifica si se debe actualizar la referencia.
float getWeight ()
 Obtiene el peso actual del generador.
void setWeight (float weight)
 Establece el peso 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.

Atributos públicos estáticos

static int count
static int countCurrent
static int usageCount = 0
static int improvementCount = 0

Atributos protegidos

CandidateValue candidatevalue
AcceptType typeAcceptation
StrategyType strategy
CandidateType typeCandidate
State stateReferenceHC
IFFactoryAcceptCandidate ifacceptCandidate
GeneratorType Generatortype
List< StatelistStateReference = new ArrayList<State>()
float weight

Atributos privados

List< StatelistRef = new ArrayList<State>()
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 Hill Climbing con reinicio periódico.

Esta clase implementa Hill Climbing que reinicia la búsqueda desde una solución aleatoria después de un número determinado de iteraciones.

Documentación de constructores y destructores

◆ HillClimbingRestart()

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

Documentación de funciones miembro

◆ awardUpdateREF()

boolean metaheuristics.generators.HillClimbingRestart.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.

◆ generate()

State metaheuristics.generators.HillClimbingRestart.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.

Gráfico de llamadas de esta función:

◆ getGeneratorType()

GeneratorType metaheuristics.generators.HillClimbingRestart.getGeneratorType ( )

◆ getListCountBetterGender()

int[] metaheuristics.generators.HillClimbingRestart.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.HillClimbingRestart.getListCountGender ( )

Obtiene el historial de uso por período.

Devuelve
Array con el contador de uso

Reimplementado de metaheuristics.generators.Generator.

◆ getReference()

State metaheuristics.generators.HillClimbingRestart.getReference ( )

Obtiene el estado de referencia actual.

Devuelve
Estado de referencia actual

Reimplementado de metaheuristics.generators.Generator.

◆ getReferenceList()

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

Obtiene la lista de estados de referencia.

Devuelve
Lista de estados de referencia

Reimplementado de metaheuristics.generators.Generator.

◆ getSonList()

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

Obtiene la lista de estados hijos generados.

Devuelve
Lista de estados hijos

Reimplementado de metaheuristics.generators.Generator.

◆ getTrace()

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

Obtiene el historial de trazas.

Devuelve
Array con el historial de trazas

Reimplementado de metaheuristics.generators.Generator.

◆ getType()

GeneratorType metaheuristics.generators.HillClimbingRestart.getType ( )

Obtiene el tipo de generador.

Devuelve
Tipo de generador metaheurístico

Reimplementado de metaheuristics.generators.Generator.

◆ getWeight()

float metaheuristics.generators.HillClimbingRestart.getWeight ( )

Obtiene el peso actual del generador.

Devuelve
Peso del generador

Reimplementado de metaheuristics.generators.Generator.

◆ setGeneratorType()

void metaheuristics.generators.HillClimbingRestart.setGeneratorType ( GeneratorType Generatortype)

◆ setInitialReference()

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

Establece el estado de referencia inicial.

Parámetros
stateInitialRefEstado de referencia inicial

Reimplementado de metaheuristics.generators.Generator.

◆ setStateRef()

void metaheuristics.generators.HillClimbingRestart.setStateRef ( State stateRef)

◆ setTypeCandidate()

void metaheuristics.generators.HillClimbingRestart.setTypeCandidate ( CandidateType typeCandidate)

◆ setWeight()

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

Establece el peso del generador.

Parámetros
weightNuevo peso del generador

Reimplementado de metaheuristics.generators.Generator.

◆ updateReference()

void metaheuristics.generators.HillClimbingRestart.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

◆ candidatevalue

CandidateValue metaheuristics.generators.HillClimbingRestart.candidatevalue
protected

◆ count

int metaheuristics.generators.HillClimbingRestart.count
static

◆ countCurrent

int metaheuristics.generators.HillClimbingRestart.countCurrent
static

◆ Generatortype

GeneratorType metaheuristics.generators.HillClimbingRestart.Generatortype
protected

◆ ifacceptCandidate

IFFactoryAcceptCandidate metaheuristics.generators.HillClimbingRestart.ifacceptCandidate
protected

◆ improvementCount

int metaheuristics.generators.HillClimbingRestart.improvementCount = 0
static

◆ improvementCountHistory

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

◆ listRef

List<State> metaheuristics.generators.HillClimbingRestart.listRef = new ArrayList<State>()
private

◆ listStateReference

List<State> metaheuristics.generators.HillClimbingRestart.listStateReference = new ArrayList<State>()
protected

◆ listTrace

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

◆ stateReferenceHC

State metaheuristics.generators.HillClimbingRestart.stateReferenceHC
protected

◆ strategy

StrategyType metaheuristics.generators.HillClimbingRestart.strategy
protected

◆ typeAcceptation

AcceptType metaheuristics.generators.HillClimbingRestart.typeAcceptation
protected

◆ typeCandidate

CandidateType metaheuristics.generators.HillClimbingRestart.typeCandidate
protected

◆ usageCount

int metaheuristics.generators.HillClimbingRestart.usageCount = 0
static

◆ usageCountHistory

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

◆ weight

float metaheuristics.generators.HillClimbingRestart.weight
protected

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