Skip to main content

GraphSpace

Module: opytimizer.spaces.graph

A GraphSpace Factory Class for agents, variables and methods related to graph-structured search spaces (directed/undirected, tensorized/non-tensorized).

Constructor​

GraphSpace(n_agents: int, n_nodes: int, n_objectives: int, directed: bool = False, edge_prob: float = 0.3, connected: bool = False, mapping: Optional[List[str]] = None, env: opytimizer.core.environment.Environment = None, tensorized: bool = False) -> Union[opytimizer.spaces.graph._SingleObjectiveGraphSpace, opytimizer.spaces.graph._MultiObjectiveGraphSpace, opytimizer.spaces.graph._SingleObjectiveTensorGraphSpace, opytimizer.spaces.graph._MultiObjectiveTensorGraphSpace]

Parameters​

ParameterTypeDefaultDescription
n_agentsint—
n_nodesint—
n_objectivesint—
directedboolFalse—
edge_probfloat0.3—
connectedboolFalse—
mappingOptional[List[str]]None—
envopytimizer.core.environment.EnvironmentNone—
tensorizedboolFalse—