Skip to content

Commit

Permalink
docs: Add missing docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-caron committed Dec 3, 2024
1 parent 281fe0c commit 9190e1e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qpbenchmark/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ def __init__(

@staticmethod
def from_qpsolvers(qp: qpsolvers.Problem, name: str) -> "Problem":
"""Stick a name to a generic problem from qpsolvers.
Args:
name: Name of the problem.
Returns:
Benchmark version of the problem.
"""
return Problem(
qp.P,
qp.q,
Expand Down

0 comments on commit 9190e1e

Please sign in to comment.