Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
staadecker committed Dec 16, 2024
1 parent 2901d3b commit 5502176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyoframe/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ def relax(
The same constraint
Examples:
>>> m = pf.Model(use_var_names=True)
>>> m = pf.Model(sense="min")
>>> homework_due_tomorrow = pl.DataFrame({"project": ["A", "B", "C"], "cost_per_hour_underdelivered": [10, 20, 30], "hours_to_finish": [9, 9, 9], "max_underdelivered": [1, 9, 9]})
>>> m.hours_spent = pf.Variable(homework_due_tomorrow[["project"]], lb=0)
>>> m.must_finish_project = (m.hours_spent >= homework_due_tomorrow[["project", "hours_to_finish"]]).relax(homework_due_tomorrow[["project", "cost_per_hour_underdelivered"]], max=homework_due_tomorrow[["project", "max_underdelivered"]])
Expand Down

0 comments on commit 5502176

Please sign in to comment.