8000 Fixed imports. · lambe/NLP.py@296cda4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 296cda4

Browse files
syarradpo
authored andcommitted
Fixed imports.
1 parent ea25d28 commit 296cda4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

nlp/optimize/cqp.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
99
D. Orban, Montreal 2009-2011.
1010
"""
11-
from nlp.model.snlp import SlackFramework
11+
from nlp.model.snlp import SlackModel
1212
try: # To solve augmented systems
13-
from hsl.solver.pyma57 import PyMa57Solver as LBLContext
13+
from hsl.solvers.pyma57 import PyMa57Solver as LBLContext
1414
except:
15-
from hsl.solver.pyma27 import PyMa27Solver as LBLContext
15+
from hsl.solvers.pyma27 import PyMa27Solver as LBLContext
1616
from hsl.scaling.mc29 import mc29ad
1717
from pykrylov.linop import PysparseLinearOperator
1818
from nlp.tools.norms import norm2, norm_infty, normest
@@ -35,7 +35,7 @@ class RegQPInteriorPointSolver(object):
3535
where Q is a symmetric positive semi-definite matrix, the variables
3636
x are the original problem variables and s are slack variables. Any
3737
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
3939
is mandatory in this implementation.
4040
4141
The method is a variant of Mehrotra's predictor-corrector method where
@@ -83,8 +83,8 @@ def __init__(self, qp, **kwargs):
8383
8484
:verbose: Turn on verbose mode (default `False`).
8585
"""
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'
8888
raise ValueError(msg)
8989

9090
# Grab logger if one was configured.

0 commit comments

Comments
 (0)
0