init_genius_bridge
- negmas.genius.init_genius_bridge(path=None, port=25337, debug=False, timeout=0, force_timeout=True, save_logs=False, log_path=None, die_on_exit=False, use_shell=False, verbose=False, allow_agent_print=False)[source]
Initializes a genius connection
- Parameters:
path (
Path
|str
|None
) – The path to a JAR file that runs negloaderport (
int
) – port number to usedebug (
bool
) – If true, passes –debug to the bridgetimeout (
float
) – 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.
- Return type:
- Returns:
Port if started. -1 if a bridge is already running on this port. 0 if failed