Skip to content

Commit

Permalink
manual line length inspection and fix for ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
shoresj committed Jul 28, 2024
1 parent 0a1b0d5 commit 12c29ce
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions linear_programming/interior_point_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 12c29ce

Please sign in to comment.