(class from pyomo.contrib.solver.solvers.knitro.package)
pyomo.contrib.solver.solvers.knitro.package
Bases: object
object
Manages the global KNITRO license context and provides utility methods for license handling.
This class handles license initialization, release, context creation, version reporting, and license availability checks for the KNITRO solver.
Methods
__init__()
__init__
check_availability()
check_availability
Check if the KNITRO solver and license are available.
create_context()
create_context
Create a new KNITRO context using the global license context.
get_version()
get_version
Get the version of the KNITRO solver as a tuple.
initialize_license()
initialize_license
Initialize the global KNITRO license context if not already initialized.
release_license()
release_license
Release the global KNITRO license context if it exists.
Member Documentation
The availability status (FullLicense, BadLicense, NotFound).
Availability
The new KNITRO context object.
The (major, minor, patch) version of KNITRO or None if KNITRO version could not be determined.
tuple[int, int, int]
The KNITRO license context object.