init_genius_bridge

negmas.genius.init_genius_bridge(path: Path | str | None = None, port: int = 25337, debug: bool = False, timeout: float = 0, force_timeout: bool = True, save_logs: bool = False, log_path: PathLike | None = None, die_on_exit: bool = False, use_shell: bool = False, verbose: bool = False, allow_agent_print: bool = False) int[source]

Initializes a genius connection

Parameters:
  • path – The path to a JAR file that runs negloader

  • port – port number to use

  • debug – If true, passes –debug to the bridge

  • timeout – If positive and nonzero, passes it as the global timeout for the bridge. Note that currently, the bridge supports only integer timeout values and the fraction will be truncated.

Returns:

Port if started. -1 if a bridge is already running on this port. 0 if failed