opytimizer.optimizers.swarm.sos¶
Symbiotic Organisms Search.
-
class
opytimizer.optimizers.swarm.sos.
SOS
(params: Optional[Dict[str, Any]] = None)¶ An SOS class, inherited from Optimizer.
This is the designed class to define SOS-related variables and methods.
References
M.-Y. Cheng and D. Prayogo. Symbiotic Organisms Search: A new metaheuristic optimization algorithm. Computers & Structures (2014).
-
__init__
(params: Optional[Dict[str, Any]] = None) → None¶ Initialization method.
Parameters: params – Contains key-value parameters to the meta-heuristics.
-
_mutualism
(agent_i: opytimizer.core.agent.Agent, agent_j: opytimizer.core.agent.Agent, best_agent: opytimizer.core.agent.Agent, function: opytimizer.core.function.Function) → None¶ Performs the mutualism operation.
Parameters: - agent_i – Selected i agent.
- agent_j – Selected j agent.
- best_agent – Global best agent.
- function – A Function object that will be used as the objective function.
-
_commensalism
(agent_i: opytimizer.core.agent.Agent, agent_j: opytimizer.core.agent.Agent, best_agent: opytimizer.core.agent.Agent, function: opytimizer.core.function.Function) → None¶ Performs the commensalism operation.
Parameters: - agent_i – Selected i agent.
- agent_j – Selected j agent.
- best_agent – Global best agent.
- function – A Function object that will be used as the objective function.
-
_parasitism
(agent_i: opytimizer.core.agent.Agent, agent_j: opytimizer.core.agent.Agent, function: opytimizer.core.function.Function) → None¶ Performs the parasitism operation.
Parameters: - agent_i – Selected i agent.
- agent_j – Selected j agent.
- function – A Function object that will be used as the objective function.
-
update
(space: opytimizer.core.space.Space, function: opytimizer.core.function.Function) → None¶ Wraps Symbiotic Organisms Search 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.
-