8
8
9
9
D. Orban, Montreal 2009-2011.
10
10
"""
11
- from nlp .model .snlp import SlackFramework
11
+ from nlp .model .snlp import SlackModel
12
12
try : # To solve augmented systems
13
- from hsl .solver .pyma57 import PyMa57Solver as LBLContext
13
+ from hsl .solvers .pyma57 import PyMa57Solver as LBLContext
14
14
except :
15
- from hsl .solver .pyma27 import PyMa27Solver as LBLContext
15
+ from hsl .solvers .pyma27 import PyMa27Solver as LBLContext
16
16
from hsl .scaling .mc29 import mc29ad
17
17
from pykrylov .linop import PysparseLinearOperator
18
18
from nlp .tools .norms import norm2 , norm_infty , normest
@@ -35,7 +35,7 @@ class RegQPInteriorPointSolver(object):
35
35
where Q is a symmetric positive semi-definite matrix, the variables
36
36
x are the original problem variables and s are slack variables. Any
37
37
quadratic program may be converted to the above form by instantiation
38
- of the `SlackFramework ` class. The conversion to the slack formulation
38
+ of the `SlackModel ` class. The conversion to the slack formulation
39
39
is mandatory in this implementation.
40
40
41
41
The method is a variant of Mehrotra's predictor-corrector method where
@@ -83,8 +83,8 @@ def __init__(self, qp, **kwargs):
83
83
84
84
:verbose: Turn on verbose mode (default `False`).
85
85
"""
86
- if not isinstance (qp , SlackFramework ):
87
- msg = 'Input problem must be an instance of SlackFramework '
86
+ if not isinstance (qp , SlackModel ):
87
+ msg = 'Input problem must be an instance of SlackModel '
88
88
raise ValueError (msg )
89
89
90
90
# Grab logger if one was configured.
0 commit comments