22
33import numpy as np
44
5- from .constants import SIMPLE_TRSP , MINQ5_TRSP
5+ from .constants import TRSP_SOLVER_SIMPLE , TRSP_SOLVER_MINQ5
66from .._get_minq_installation import get_minq_installation
77from .bqmin import bqmin
88
@@ -23,10 +23,10 @@ def create_trsp_solver(spsolver):
2323 for all components :math:`s_j` of :math:`\svec`.
2424
2525 :param spsolver:
26- * ``ibcdfo.pounders.SIMPLE_TRSP `` - simplistic 10 line solver that is
26+ * ``ibcdfo.pounders.TRSP_SOLVER_SIMPLE `` - simplistic 10 line solver that is
2727 included only for testing and maintenance purposes
28- * ``ibcdfo.pounders.MINQ5_TRSP `` - Arnold Neumaier's minq5 solver
29- * ``ibcdfo.pounders.MINQ8_TRSP `` - Arnold Neumaier's minq8 solver
28+ * ``ibcdfo.pounders.TRSP_SOLVER_MINQ5 `` - Arnold Neumaier's minq5 solver
29+ * ``ibcdfo.pounders.TRSP_SOLVER_MINQ8 `` - Arnold Neumaier's minq8 solver
3030 :return: Python function with the interface
3131
3232 .. code:: python
@@ -47,15 +47,15 @@ def create_trsp_solver(spsolver):
4747 * ``flag`` communicates the termination condition of the solver with a
4848 negative value indicating failure.
4949 """
50- if spsolver == SIMPLE_TRSP :
50+ if spsolver == TRSP_SOLVER_SIMPLE :
5151
5252 def __bqmin_wrapper (H , G , Low , Upp ):
5353 Xsp , mdec = bqmin (H , G , Low , Upp )
5454 return Xsp , mdec , 0
5555
5656 return __bqmin_wrapper
5757
58- elif spsolver == MINQ5_TRSP :
58+ elif spsolver == TRSP_SOLVER_MINQ5 :
5959 required_minq_SHA , minq_installation = get_minq_installation ()
6060 if not minq_installation ["is_valid" ]:
6161 msg = f"Please set MINQ clone to git commit { required_minq_SHA } .\n See User Guide (https://ibcdfo.readthedocs.io) for more information and instructions."
0 commit comments