Skip to main content

GraphAgent

Module: opytimizer.core.graph.agent_graph

An Agent whose position is a Graph (or Tree, since Tree subclasses Graph) instance instead of a numeric ndarray.

Constructor​

GraphAgent(n_objectives: int = 1, mapping: Optional[List[str]] = None, env: opytimizer.core.environment.Environment = None) -> None

Parameters​

ParameterTypeDefaultDescription
n_objectivesint1Number of objective functions.
mappingOptional[List[str]]NoneOptional display name(s) for this agent's payload.
envopytimizer.core.environment.EnvironmentNoneEnvironment class object.

Methods​

dominates​

dominates(self, other: 'GraphAgent') -> bool

Checks if this agent dominates another agent.

Returns: (bool): Whether this agent dominates the other.

Parameters​

ParameterTypeDefaultDescription
otherGraphAgentAnother agent to be compared.