GurobiDirectMINLP

(class from pyomo.contrib.solver.solvers.gurobi.gurobi_direct_minlp)

class pyomo.contrib.solver.solvers.gurobi.gurobi_direct_minlp.GurobiDirectMINLP(**kwds)[source]

Bases: GurobiDirectBase

__init__(**kwds)[source]

Methods

__init__(**kwds)

api_version()

Return the public API supported by this interface.

available()

Test if the solver is available on this system.

env()

is_persistent()

True if this supports a persistent interface to the solver.

release_license()

solve(model, **kwds)

Solve a Pyomo model.

version()

Return the solver version found on the system.

Attributes

CONFIG

name

config

Instance configuration; see CONFIG documentation on derived class

Member Documentation

classmethod api_version()

Return the public API supported by this interface.

Returns:

A solver API enum object

Return type:

SolverAPIVersion

available()

Test if the solver is available on this system.

Nominally, this will return True if the solver interface is valid and can be used to solve problems and False if it cannot. Note that for licensed solvers there are a number of “levels” of available: depending on the license, the solver may be available with limitations on problem size or runtime (e.g., ‘demo’ vs. ‘community’ vs. ‘full’). In these cases, the solver may return a subclass of enum.IntEnum, with members that resolve to True if the solver is available (possibly with limitations). The Enum may also have multiple members that all resolve to False indicating the reason why the interface is not available (not found, bad license, unsupported version, etc).

Returns:

available – An enum that indicates “how available” the solver is. Note that the enum can be cast to bool, which will be True if the solver is runnable at all and False otherwise.

Return type:

Availability

is_persistent() bool

True if this supports a persistent interface to the solver.

Returns:

is_persistent – True if the solver is a persistent solver.

Return type:

bool

solve(model, **kwds) Results

Solve a Pyomo model.

Parameters:
  • model (BlockData) – The Pyomo model to be solved

  • **kwargs – Additional keyword arguments (including solver_options - passthrough options; delivered directly to the solver (with no validation))

Returns:

results – A results object

Return type:

Results

version()

Return the solver version found on the system.

Returns:

version – A tuple representing the version

Return type:

tuple

CONFIG = <pyomo.contrib.solver.solvers.gurobi.gurobi_direct_base.GurobiConfig object>
config

Instance configuration; see CONFIG documentation on derived class