Module to take care of registering solvers for use in the main Optunity API.
Main functions in this module:
Module author: Marc Claesen
Returns the class of the solver registered under given name.
Parameters: | solver_name – name of the solver |
---|---|
Returns: | the solver class |
Returns the general manual of Optunity, with a brief introduction of all registered solvers.
Returns: | the manual as a list of strings (lines) |
---|
Class decorator to register a optunity.solvers.Solver subclass in the registry. Registered solvers will be available through Optunity’s main API functions, e.g. optunity.make_solver() and optunity.manual().
Parameters: |
|
---|---|
Returns: | a class decorator to register solvers in the solver registry |
The resulting class decorator attaches attributes to the class before registering:
_name: | the name using which the solver is registered |
---|---|
_desc_full: | extensive description and manual as list of strings (lines) |
_desc_brief: | attribute with one-line description |
These attributes will be available as class properties.