Skip to content

Commit

Permalink
Increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
staadecker committed Dec 9, 2024
1 parent f7c1a7f commit adce194
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pyoframe/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ class Model:
>>> m.my_constraint = m.X <= 10
>>> m
<Model vars=1 constrs=1 objective=False>
Try setting the Gurobi license:
>>> m = pf.Model(solver="gurobi", solver_env=dict(ComputeServer="myserver", ServerPassword="mypassword"))
Traceback (most recent call last):
...
RuntimeError: Could not resolve host: myserver (code 6, command POST http://myserver/api/v1/cluster/jobs)
"""

_reserved_attributes = [
Expand Down

0 comments on commit adce194

Please sign in to comment.