SolverManager_NEOS

(class from pyomo.neos.plugins.kestrel_plugin)

class pyomo.neos.plugins.kestrel_plugin.SolverManager_NEOS(**kwds)[source]

Bases: AsynchronousSolverManager

__init__(**kwds)

Constructor

Methods

__init__(**kwds)

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.

solve(*args, **kwds)

solve_all(solver, instances, **kwds)

A simple utility to apply a solver to a list of problem instances.

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)

Synchronously execute an action.

get_results(ah)

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

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.

solve_all(solver, instances, **kwds)

A simple utility to apply a solver to a list of problem instances. The solver is applied asynchronously and a barrier synchronization is performed to finalize all results. All keywords are passed to each invocation of the solver, and the results are loaded into each instance.

The solver manager manages this process, and the solver is used to manage each invocation of the solver.

wait_all(*args)

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)

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.