|
BiCIAM - Framework Metaheurístico 1.0
Framework de optimización con algoritmos metaheurísticos y evolutivos
|
Algoritmo metaheurístico basado en estrategias evolutivas con mutación. Más...
Métodos públicos | |
| EvolutionStrategies () | |
| Constructor por defecto de estrategias evolutivas. | |
| State | generate (Integer operatornumber) throws IllegalArgumentException, SecurityException, ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException |
| Genera un nuevo estado candidato mediante mutación. | |
| State | getReference () |
| Obtiene el estado de referencia con mejor evaluación. | |
| void | setStateRef (State stateRef) |
| GeneratorType | getType () |
| Obtiene el tipo de generador. | |
| void | setInitialReference (State stateInitialRef) |
| Establece el estado de referencia inicial. | |
| 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 > | getListStateRef () |
| List< State > | getListStateReference () |
| void | setListStateReference (List< State > listStateReference) |
| GeneratorType | getTypeGenerator () |
| void | setTypeGenerator (GeneratorType generatorType) |
| List< State > | getReferenceList () |
| Obtiene la lista de estados de referencia. | |
| List< State > | getSonList () |
| Obtiene la lista de estados hijos generados. | |
| 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 double | PM |
| Probabilidad de mutación. | |
| static MutationType | mutationType |
| Tipo de mutación utilizada. | |
| static ReplaceType | replaceType |
| Tipo de reemplazo de soluciones. | |
| static SelectionType | selectionType |
| Tipo de selección de padres. | |
| static int | countRef = 0 |
| Contador de referencias. | |
| static int | truncation |
| Tamaño de truncamiento para selección. | |
Atributos privados | |
| State | stateReferenceES |
| Estado de referencia del algoritmo de estrategias evolutivas. | |
| List< State > | listStateReference = new ArrayList<State>() |
| Lista de estados de referencia. | |
| IFFactoryFatherSelection | iffatherselection |
| Factoría para la selección de padres. | |
| IFFactoryMutation | iffactorymutation |
| Factoría para operadores de mutación. | |
| IFFactoryReplace | iffreplace |
| Factoría para reemplazo de soluciones. | |
| GeneratorType | generatorType |
| Tipo de generador metaheurístico. | |
| float | weight = 50 |
| Peso del generador. | |
| 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 metaheurístico basado en estrategias evolutivas con mutación.
Esta clase implementa estrategias evolutivas que seleccionan padres, aplican mutación y reemplazan soluciones en la población basándose en criterios evolutivos.
| metaheuristics.generators.EvolutionStrategies.EvolutionStrategies | ( | ) |
Constructor por defecto de estrategias evolutivas.
Inicializa el algoritmo con tipo de mutación uniforme, reemplazo de los peores y selección por truncamiento, con peso inicial de 50.
Constructor por defecto de estrategias evolutivas
Inicializa el algoritmo con tipo de mutación uniforme, reemplazo de los peores y selección por truncamiento, con peso inicial de 50.
| boolean metaheuristics.generators.EvolutionStrategies.awardUpdateREF | ( | State | stateCandidate | ) |
Verifica si se debe actualizar la referencia.
| stateCandidate | Estado candidato a verificar |
Reimplementado de metaheuristics.generators.Generator.
| State metaheuristics.generators.EvolutionStrategies.generate | ( | Integer | operatornumber | ) | throws IllegalArgumentException, SecurityException, ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException |
Genera un nuevo estado candidato mediante mutación.
| 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.
| int[] metaheuristics.generators.EvolutionStrategies.getListCountBetterGender | ( | ) |
Obtiene el historial de mejoras por período.
Reimplementado de metaheuristics.generators.Generator.
| int[] metaheuristics.generators.EvolutionStrategies.getListCountGender | ( | ) |
Obtiene el historial de uso por período.
Reimplementado de metaheuristics.generators.Generator.
| List< State > metaheuristics.generators.EvolutionStrategies.getListStateRef | ( | ) |
| List< State > metaheuristics.generators.EvolutionStrategies.getListStateReference | ( | ) |
| State metaheuristics.generators.EvolutionStrategies.getReference | ( | ) |
Obtiene el estado de referencia con mejor evaluación.
Reimplementado de metaheuristics.generators.Generator.
| List< State > metaheuristics.generators.EvolutionStrategies.getReferenceList | ( | ) |
Obtiene la lista de estados de referencia.
Reimplementado de metaheuristics.generators.Generator.
| List< State > metaheuristics.generators.EvolutionStrategies.getSonList | ( | ) |
Obtiene la lista de estados hijos generados.
Reimplementado de metaheuristics.generators.Generator.
| float[] metaheuristics.generators.EvolutionStrategies.getTrace | ( | ) |
Obtiene el historial de trazas.
Reimplementado de metaheuristics.generators.Generator.
| GeneratorType metaheuristics.generators.EvolutionStrategies.getType | ( | ) |
Obtiene el tipo de generador.
Reimplementado de metaheuristics.generators.Generator.
| GeneratorType metaheuristics.generators.EvolutionStrategies.getTypeGenerator | ( | ) |
| float metaheuristics.generators.EvolutionStrategies.getWeight | ( | ) |
Obtiene el peso actual del generador.
Reimplementado de metaheuristics.generators.Generator.
| void metaheuristics.generators.EvolutionStrategies.setInitialReference | ( | State | stateInitialRef | ) |
Establece el estado de referencia inicial.
| stateInitialRef | Estado de referencia inicial |
Reimplementado de metaheuristics.generators.Generator.
| void metaheuristics.generators.EvolutionStrategies.setListStateReference | ( | List< State > | listStateReference | ) |
| void metaheuristics.generators.EvolutionStrategies.setStateRef | ( | State | stateRef | ) |
| void metaheuristics.generators.EvolutionStrategies.setTypeGenerator | ( | GeneratorType | generatorType | ) |
| void metaheuristics.generators.EvolutionStrategies.setWeight | ( | float | weight | ) |
Establece el peso del generador.
| weight | Nuevo peso del generador |
Reimplementado de metaheuristics.generators.Generator.
| void metaheuristics.generators.EvolutionStrategies.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.
|
static |
Contador de referencias.
|
private |
Tipo de generador metaheurístico.
|
private |
Factoría para operadores de mutación.
|
private |
Factoría para la selección de padres.
|
private |
Factoría para reemplazo de soluciones.
|
private |
Lista de estados de referencia.
|
private |
Historial de trazas del peso.
|
static |
Tipo de mutación utilizada.
|
static |
Probabilidad de mutación.
|
static |
Tipo de reemplazo de soluciones.
|
static |
Tipo de selección de padres.
|
private |
Estado de referencia del algoritmo de estrategias evolutivas.
|
static |
Tamaño de truncamiento para selección.
|
private |
Contador de uso por período para problemas dinámicos.
|
private |
Peso del generador.