opytimizer.optimizers.population.gco

Germinal Center Optimization.

class opytimizer.optimizers.population.gco.GCO(params: Optional[Dict[str, Any]] = None)

A GCO class, inherited from Optimizer.

This is the designed class to define GCO-related variables and methods.

References

C. Villaseñor et al. Germinal center optimization algorithm. International Journal of Computational Intelligence Systems (2018).

__init__(params: Optional[Dict[str, Any]] = None) → None

Initialization method.

Parameters:params – Contains key-value parameters to the meta-heuristics.
CR

Cross-ratio parameter.

F

Mutation factor.

life

Array of lives.

counter

Array of counters.

compile(space: opytimizer.core.space.Space) → None

Compiles additional information that is used by this optimizer.

Parameters:space – A Space object containing meta-information.
_mutate_cell(agent: opytimizer.core.agent.Agent, alpha: opytimizer.core.agent.Agent, beta: opytimizer.core.agent.Agent, gamma: opytimizer.core.agent.Agent) → opytimizer.core.agent.Agent

Mutates a new cell based on distinct cells (alg. 2).

Parameters:
  • agent – Current agent.
  • alpha – 1st picked agent.
  • beta – 2nd picked agent.
  • gamma – 3rd picked agent.
Returns:

A mutated cell.

Return type:

(Agent)

_dark_zone(agents: List[opytimizer.core.agent.Agent], function: opytimizer.core.function.Function) → None

Performs the dark-zone update process (alg. 1).

Parameters:
  • agents – List of agents.
  • function – A Function object that will be used as the objective function.
_light_zone(agents: List[opytimizer.core.agent.Agent]) → None

Performs the light-zone update process (alg. 1).

Parameters:agents – List of agents.
update(space: opytimizer.core.space.Space, function: opytimizer.core.function.Function) → None

Wraps Germinal Center Optimization over all agents and variables.

Parameters:
  • space – Space containing agents and update-related information.
  • function – A Function object that will be used as the objective function.