diff --git a/pyomo/solvers/plugins/solvers/cplex_direct.py b/pyomo/solvers/plugins/solvers/cplex_direct.py index 40b01f85e30..b758453df7d 100644 --- a/pyomo/solvers/plugins/solvers/cplex_direct.py +++ b/pyomo/solvers/plugins/solvers/cplex_direct.py @@ -846,7 +846,9 @@ def _postsolve(self): if extract_slacks: linear_slacks = self._solver_model.solution.get_linear_slacks() - quadratic_slacks = self._solver_model.solution.get_quadratic_slacks() + quadratic_slacks = ( + self._solver_model.solution.get_quadratic_slacks() + ) for i, con_name in enumerate( self._solver_model.linear_constraints.get_names() ):