|
BiCIAM - Framework Metaheurístico 1.0
Framework de optimización con algoritmos metaheurísticos y evolutivos
|
Algoritmo de búsqueda local Hill Climbing (Ascenso de Colina). Más...
Métodos públicos | |
| HillClimbing () | |
| Constructor por defecto del Hill Climbing. | |
| 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< State > | getReferenceList () |
| 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< State > | getSonList () |
| 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 protegidos | |
| CandidateValue | candidatevalue |
| Seleccionador de candidatos del vecindario. | |
| AcceptType | typeAcceptation |
| Tipo de aceptación de soluciones. | |
| StrategyType | strategy |
| Tipo de estrategia de búsqueda. | |
| CandidateType | typeCandidate |
| Tipo de candidato a seleccionar. | |
| State | stateReferenceHC |
| Estado de referencia del Hill Climbing. | |
| IFFactoryAcceptCandidate | ifacceptCandidate |
| Factoría para crear aceptadores de candidatos. | |
| GeneratorType | Generatortype |
| Tipo de generador metaheurístico. | |
| List< State > | listStateReference = new ArrayList<State>() |
| Lista de estados de referencia. | |
| float | weight |
| Peso del generador. | |
Atributos privados | |
| int[] | betterCountByPeriod = new int[10] |
| Contador de mejoras por período para problemas dinámicos. | |
| int[] | usageCountByPeriod = new int[10] |
| Contador de uso por período para problemas dinámicos. | |
| float[] | listTrace = new float[1200000] |
| Historial de trazas del peso. | |
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. | |
Algoritmo de búsqueda local Hill Climbing (Ascenso de Colina).
Esta clase implementa el algoritmo de búsqueda local Hill Climbing que explora el vecindario de la solución actual y se mueve hacia mejores soluciones.
| metaheuristics.generators.HillClimbing.HillClimbing | ( | ) |
Constructor por defecto del Hill Climbing.
Inicializa el algoritmo con aceptación del mejor candidato y estrategia normal. El tipo de candidato se determina según el tipo de problema (maximización o minimización).
| boolean metaheuristics.generators.HillClimbing.awardUpdateREF | ( | State | stateCandidate | ) |
Verifica si se debe actualizar la referencia.
| stateCandidate | Estado candidato a verificar |
Reimplementado de metaheuristics.generators.Generator.
| State metaheuristics.generators.HillClimbing.generate | ( | Integer | operatornumber | ) | throws IllegalArgumentException, SecurityException, ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException |
Genera un nuevo estado candidato.
| operatornumber | Número de operador a utilizar |
| IllegalArgumentException | Si los argumentos son inválidos |
| SecurityException | Si hay problemas de seguridad |
| ClassNotFoundException | Si no se encuentra una clase |
| InstantiationException | Si hay error en la instanciación |
| IllegalAccessException | Si hay acceso ilegal |
| InvocationTargetException | Si hay error en la invocación |
| NoSuchMethodException | Si no se encuentra un método |
Reimplementado de metaheuristics.generators.Generator.
| GeneratorType metaheuristics.generators.HillClimbing.getGeneratorType | ( | ) |
| int[] metaheuristics.generators.HillClimbing.getListCountBetterGender | ( | ) |
Obtiene el historial de mejoras por período.
Reimplementado de metaheuristics.generators.Generator.
| int[] metaheuristics.generators.HillClimbing.getListCountGender | ( | ) |
Obtiene el historial de uso por período.
Reimplementado de metaheuristics.generators.Generator.
| State metaheuristics.generators.HillClimbing.getReference | ( | ) |
Obtiene el estado de referencia actual.
Reimplementado de metaheuristics.generators.Generator.
| List< State > metaheuristics.generators.HillClimbing.getReferenceList | ( | ) |
Obtiene la lista de estados de referencia.
Reimplementado de metaheuristics.generators.Generator.
| List< State > metaheuristics.generators.HillClimbing.getSonList | ( | ) |
Obtiene la lista de estados hijos generados.
Reimplementado de metaheuristics.generators.Generator.
| float[] metaheuristics.generators.HillClimbing.getTrace | ( | ) |
Obtiene el historial de trazas.
Reimplementado de metaheuristics.generators.Generator.
| GeneratorType metaheuristics.generators.HillClimbing.getType | ( | ) |
Obtiene el tipo de generador.
Reimplementado de metaheuristics.generators.Generator.
| float metaheuristics.generators.HillClimbing.getWeight | ( | ) |
Obtiene el peso actual del generador.
Reimplementado de metaheuristics.generators.Generator.
| void metaheuristics.generators.HillClimbing.setGeneratorType | ( | GeneratorType | Generatortype | ) |
| void metaheuristics.generators.HillClimbing.setInitialReference | ( | State | stateInitialRef | ) |
Establece el estado de referencia inicial.
| stateInitialRef | Estado de referencia inicial |
Reimplementado de metaheuristics.generators.Generator.
| void metaheuristics.generators.HillClimbing.setStateRef | ( | State | stateRef | ) |
| void metaheuristics.generators.HillClimbing.setTypeCandidate | ( | CandidateType | typeCandidate | ) |
| void metaheuristics.generators.HillClimbing.setWeight | ( | float | weight | ) |
Establece el peso del generador.
| weight | Nuevo peso del generador |
Reimplementado de metaheuristics.generators.Generator.
| void metaheuristics.generators.HillClimbing.updateReference | ( | State | stateCandidate, |
| Integer | countIterationsCurrent ) throws IllegalArgumentException, SecurityException, ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException |
Actualiza el estado de referencia con un nuevo candidato.
| stateCandidate | Estado candidato a considerar |
| countIterationsCurrent | Iteración actual del algoritmo |
| IllegalArgumentException | Si los argumentos son inválidos |
| SecurityException | Si hay problemas de seguridad |
| ClassNotFoundException | Si no se encuentra una clase |
| InstantiationException | Si hay error en la instanciación |
| IllegalAccessException | Si hay acceso ilegal |
| InvocationTargetException | Si hay error en la invocación |
| NoSuchMethodException | Si no se encuentra un método |
Reimplementado de metaheuristics.generators.Generator.
|
private |
Contador de mejoras por período para problemas dinámicos.
|
protected |
Seleccionador de candidatos del vecindario.
|
protected |
Tipo de generador metaheurístico.
|
protected |
Factoría para crear aceptadores de candidatos.
|
protected |
Lista de estados de referencia.
|
private |
Historial de trazas del peso.
|
protected |
Estado de referencia del Hill Climbing.
|
protected |
Tipo de estrategia de búsqueda.
|
protected |
Tipo de aceptación de soluciones.
|
protected |
Tipo de candidato a seleccionar.
|
private |
Contador de uso por período para problemas dinámicos.
|
protected |
Peso del generador.