(class from pyomo.contrib.solver.common.base)
pyomo.contrib.solver.common.base
Bases: object
object
Class to map the new solver interface features into the legacy solver interface. Necessary for backwards compatibility.
Methods
__init__(**kwargs)
__init__
api_version()
api_version
Return the public API supported by this interface.
available([exception_flag])
available
Returns a bool determining whether the requested solver is available on the system.
config_block([init])
config_block
Preserves config backwards compatibility; allows new solver interfaces to be used in the pyomo solve call
default_variable_value()
default_variable_value
license_is_valid()
license_is_valid
Test if the solver license is valid on this system.
set_options(options)
set_options
Method to manually set options; can be called outside of the solve method
solve(model[, tee, load_solutions, logfile, ...])
solve
Solve method: maps new solve method style to backwards compatible version.
warm_start_capable()
warm_start_capable
Member Documentation
A solver API enum object
SolverAPIVersion
Note that this method is included for compatibility with the legacy SolverFactory interface. Unlicensed or open source solvers will return True by definition. Licensed solvers will return True if a valid license is found.
available – True if the solver license is valid. Otherwise, False.
bool
Legacy results object
legacy_results