AsynchronousActionManager

(class from pyomo.opt.parallel.manager)

class pyomo.opt.parallel.manager.AsynchronousActionManager[source]

Bases: object

__init__()[source]

Constructor

Methods

__init__()

Constructor

clear()

Clear manager state

execute(*args, **kwds)

Synchronously execute an action.

get_results(ah)

Return solver results.

get_status(ah)

Return the status of the ActionHandle.

num_queued()

Return the number of queued actions.

queue(*args, **kwds)

Queue an action, returning an ActionHandle object.

wait_all(*args)

Wait for all actions to complete.

wait_any(*args)

Wait for any action (or any of the specified actions) to complete, and return the corresponding ActionHandle.

wait_for(ah)

Wait for the specified action to complete.

Member Documentation

clear()[source]

Clear manager state

execute(*args, **kwds)[source]

Synchronously execute an action.

get_results(ah)[source]

Return solver results. If solver results are not available, return None.

get_status(ah)[source]

Return the status of the ActionHandle.

num_queued()[source]

Return the number of queued actions.

queue(*args, **kwds)[source]

Queue an action, returning an ActionHandle object.

wait_all(*args)[source]

Wait for all actions to complete. The arguments to this method are expected to be ActionHandle objects or iterators that return ActionHandle objects. If no arguments are provided, then this method will terminate after all queued actions are

wait_any(*args)[source]

Wait for any action (or any of the specified actions) to complete, and return the corresponding ActionHandle.

wait_for(ah)[source]

Wait for the specified action to complete.