From 12c29cec0f7e535a24d5a673b5799624f56818f5 Mon Sep 17 00:00:00 2001 From: Joseph Shores Date: Sat, 27 Jul 2024 21:07:31 -0400 Subject: [PATCH] manual line length inspection and fix for ruff --- linear_programming/interior_point_method.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/linear_programming/interior_point_method.py b/linear_programming/interior_point_method.py index 3c690a70bbd6..cfcdc8f92935 100644 --- a/linear_programming/interior_point_method.py +++ b/linear_programming/interior_point_method.py @@ -11,7 +11,7 @@ class InteriorPointMethod: """ - Operate on linear programming problems using the Primal-Dual Interior-Point Method. + Operate on linear programming problems using the Interior-Point Method. Attributes: objective_coefficients (np.ndarray): Coefficient matrix for the objective @@ -57,11 +57,10 @@ def _convert_to_standard_form(self) -> tuple[np.ndarray, np.ndarray]: def solve(self) -> tuple[np.ndarray, float]: """ - Solve the linear programming problem using the Primal-Dual Interior-Point -Method. + Solve problem with Primal-Dual Interior-Point Method. Returns: - tuple: A tuple containing the optimal solution and the optimal value. + tuple: A tuple with optimal soln and the optimal value. """ a, c = self._convert_to_standard_form() m, n = a.shape