pybnb.dispatcher_proxy

A proxy interface to the central dispatcher that is used by branch-and-bound workers.

Copyright by Gabriel A. Hackebeil (gabe.hackebeil@gmail.com).

pybnb.dispatcher_proxy.ProcessType = _ProcessType(worker=0, dispatcher=1)

A namespace of typecodes that are used to categorize processes during dispatcher startup.

pybnb.dispatcher_proxy.DispatcherAction = _DispatcherAction(update=111, finalize=211, log_info=311, log_warning=411, log_debug=511, log_error=611, log_critical=711, stop_listen=811)

A namespace of typecodes that are used to categorize messages received by the dispatcher from workers.

pybnb.dispatcher_proxy.DispatcherResponse = _DispatcherResponse(work=1111, nowork=2111)

A namespace of typecodes that are used to categorize responses received by workers from the dispatcher.

class pybnb.dispatcher_proxy.DispatcherProxy(comm)[source]

A proxy class for interacting with the central dispatcher via message passing.

update(best_objective, best_node, previous_bound, solve_info, node_list_)[source]

A proxy to pybnb.dispatcher.Dispatcher.update().

log_info(msg)[source]

A proxy to pybnb.dispatcher.Dispatcher.log_info().

log_warning(msg)[source]

A proxy to pybnb.dispatcher.Dispatcher.log_warning().

log_debug(msg)[source]

A proxy to pybnb.dispatcher.Dispatcher.log_debug().

log_error(msg)[source]

A proxy to pybnb.dispatcher.Dispatcher.log_error().

log_critical(msg)[source]

A proxy to pybnb.dispatcher.Dispatcher.log_critical().

stop_listen()[source]

Tell the dispatcher to abruptly stop the listen loop.